Skip to content

Commit ec58d99

Browse files
authored
Merge pull request #2933 from PrakashDurlabhji/issue_2873
Issue 2873 fix
2 parents b6bb921 + 22eb870 commit ec58d99

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
@@ -652,22 +652,29 @@ exports[`Render with specified profile 1`] = `
652652
>
653653
<div
654654
className="src-shared-components-TopcoderHeader-___style__user-menu-handle___r6kbg"
655+
role="button"
655656
style={
656657
Object {
657658
"color": "#555555",
658659
}
659660
}
661+
tabIndex={0}
660662
/>
661-
<div
662-
className="src-shared-components-TopcoderHeader-___style__avatar___3BqbY"
663+
<span
664+
role="link"
665+
tabIndex={0}
663666
>
664-
<ThemedAvatar
665-
composeAdhocTheme="deeply"
666-
composeContextTheme="softly"
667-
mapThemrProps={[Function]}
668-
themePriority="adhoc-context-default"
669-
/>
670-
</div>
667+
<div
668+
className="src-shared-components-TopcoderHeader-___style__avatar___3BqbY"
669+
>
670+
<ThemedAvatar
671+
composeAdhocTheme="deeply"
672+
composeContextTheme="softly"
673+
mapThemrProps={[Function]}
674+
themePriority="adhoc-context-default"
675+
/>
676+
</div>
677+
</span>
671678
</div>
672679
<div
673680
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)