Skip to content

Commit 3dc7c45

Browse files
authored
Merge pull request #2936 from PrakashDurlabhji/issue_2837
issue 2837 fix
2 parents 4541135 + a827897 commit 3dc7c45

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
@@ -83,6 +83,8 @@ exports[`Default render 1`] = `
8383
onMouseEnter={[Function]}
8484
onMouseLeave={[Function]}
8585
onTouchStart={[Function]}
86+
role="button"
87+
tabIndex={0}
8688
>
8789
<MagnifyingGlass
8890
height="18"
@@ -362,6 +364,8 @@ exports[`Render with open menu 1`] = `
362364
onMouseEnter={[Function]}
363365
onMouseLeave={[Function]}
364366
onTouchStart={[Function]}
367+
role="button"
368+
tabIndex={0}
365369
>
366370
<MagnifyingGlass
367371
height="18"
@@ -671,6 +675,8 @@ exports[`Render with specified profile 1`] = `
671675
onMouseEnter={[Function]}
672676
onMouseLeave={[Function]}
673677
onTouchStart={[Function]}
678+
role="button"
679+
tabIndex={0}
674680
>
675681
<MagnifyingGlass
676682
height="18"

src/shared/components/TopcoderHeader/index.jsx

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

0 commit comments

Comments
 (0)