Skip to content

Commit 3f3030f

Browse files
committed
Merge pull request #2933 from PrakashDurlabhji/issue_2873
Issue 2873 fix
1 parent 5bd1211 commit 3f3030f

File tree

2 files changed

+19
-10
lines changed
  • __tests__/shared/components/TopcoderHeader/__snapshots__
  • src/shared/components/TopcoderHeader

2 files changed

+19
-10
lines changed

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

+16-9
Original file line numberDiff line numberDiff line change
@@ -644,22 +644,29 @@ exports[`Render with specified profile 1`] = `
644644
>
645645
<div
646646
className="src-shared-components-TopcoderHeader-___style__user-menu-handle___r6kbg"
647+
role="button"
647648
style={
648649
Object {
649650
"color": "#555555",
650651
}
651652
}
653+
tabIndex={0}
652654
/>
653-
<div
654-
className="src-shared-components-TopcoderHeader-___style__avatar___3BqbY"
655+
<span
656+
role="link"
657+
tabIndex={0}
655658
>
656-
<ThemedAvatar
657-
composeAdhocTheme="deeply"
658-
composeContextTheme="softly"
659-
mapThemrProps={[Function]}
660-
themePriority="adhoc-context-default"
661-
/>
662-
</div>
659+
<div
660+
className="src-shared-components-TopcoderHeader-___style__avatar___3BqbY"
661+
>
662+
<ThemedAvatar
663+
composeAdhocTheme="deeply"
664+
composeContextTheme="softly"
665+
mapThemrProps={[Function]}
666+
themePriority="adhoc-context-default"
667+
/>
668+
</div>
669+
</span>
663670
</div>
664671
<div
665672
className="opened src-shared-components-TopcoderHeader-___style__search-icon___3w5nA"

src/shared/components/TopcoderHeader/index.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,12 @@ export default class TopcoderHeader extends React.Component {
320320
color: getRatingColor(_.get(normalizedProfile, 'maxRating.rating', 0)),
321321
}}
322322
styleName="user-menu-handle"
323+
tabIndex={0}
324+
role="button"
323325
>
324326
{normalizedProfile.handle}
325327
</div>
326-
{userAvatar}
328+
<span role="link" tabIndex={0}>{userAvatar}</span>
327329
</div>
328330
);
329331
} else {

0 commit comments

Comments
 (0)