Skip to content

Commit d10c155

Browse files
committed
Merge pull request #2936 from PrakashDurlabhji/issue_2837
issue 2837 fix
1 parent ab487b9 commit d10c155

File tree

2 files changed

+8
-0
lines changed
  • __tests__/shared/components/TopcoderHeader/__snapshots__
  • src/shared/components/TopcoderHeader

2 files changed

+8
-0
lines changed

__tests__/shared/components/TopcoderHeader/__snapshots__/index.jsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ exports[`Default render 1`] = `
7070
onMouseEnter={[Function]}
7171
onMouseLeave={[Function]}
7272
onTouchStart={[Function]}
73+
role="button"
74+
tabIndex={0}
7375
>
7476
<MagnifyingGlass
7577
height="18"
@@ -335,6 +337,8 @@ exports[`Render with open menu 1`] = `
335337
onMouseEnter={[Function]}
336338
onMouseLeave={[Function]}
337339
onTouchStart={[Function]}
340+
role="button"
341+
tabIndex={0}
338342
>
339343
<MagnifyingGlass
340344
height="18"
@@ -630,6 +634,8 @@ exports[`Render with specified profile 1`] = `
630634
onMouseEnter={[Function]}
631635
onMouseLeave={[Function]}
632636
onTouchStart={[Function]}
637+
role="button"
638+
tabIndex={0}
633639
>
634640
<MagnifyingGlass
635641
height="18"

src/shared/components/TopcoderHeader/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ export default class TopcoderHeader extends React.Component {
358358
{userMenuHandle}
359359
{authButtons}
360360
<div
361+
role="button"
362+
tabIndex={0}
361363
data-menu="search"
362364
className={searchOpened ? 'opened' : ''}
363365
onMouseEnter={event => !isMobile && openSearch(event.target)}

0 commit comments

Comments
 (0)