Skip to content

Commit 917c311

Browse files
committed
Merge pull request #2943 from PrakashDurlabhji/issue_2754
issue 2754 fix
1 parent e8438a5 commit 917c311

File tree

2 files changed

+37
-7
lines changed
  • __tests__/shared/components/TopcoderHeader/__snapshots__
  • src/shared/components/TopcoderHeader

2 files changed

+37
-7
lines changed

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

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ exports[`Default render 1`] = `
2929
onMouseLeave={[Function]}
3030
onTouchStart={[Function]}
3131
>
32-
Compete
32+
<span
33+
role="link"
34+
tabIndex={0}
35+
>
36+
Compete
37+
</span>
3338
</li>
3439
<li
3540
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -51,7 +56,12 @@ exports[`Default render 1`] = `
5156
onMouseLeave={[Function]}
5257
onTouchStart={[Function]}
5358
>
54-
Community
59+
<span
60+
role="link"
61+
tabIndex={0}
62+
>
63+
Community
64+
</span>
5565
</li>
5666
</ul>
5767
<div
@@ -296,7 +306,12 @@ exports[`Render with open menu 1`] = `
296306
onMouseLeave={[Function]}
297307
onTouchStart={[Function]}
298308
>
299-
Compete
309+
<span
310+
role="link"
311+
tabIndex={0}
312+
>
313+
Compete
314+
</span>
300315
</li>
301316
<li
302317
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -318,7 +333,12 @@ exports[`Render with open menu 1`] = `
318333
onMouseLeave={[Function]}
319334
onTouchStart={[Function]}
320335
>
321-
Community
336+
<span
337+
role="link"
338+
tabIndex={0}
339+
>
340+
Community
341+
</span>
322342
</li>
323343
</ul>
324344
<div
@@ -574,7 +594,12 @@ exports[`Render with specified profile 1`] = `
574594
onMouseLeave={[Function]}
575595
onTouchStart={[Function]}
576596
>
577-
Compete
597+
<span
598+
role="link"
599+
tabIndex={0}
600+
>
601+
Compete
602+
</span>
578603
</li>
579604
<li
580605
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -596,7 +621,12 @@ exports[`Render with specified profile 1`] = `
596621
onMouseLeave={[Function]}
597622
onTouchStart={[Function]}
598623
>
599-
Community
624+
<span
625+
role="link"
626+
tabIndex={0}
627+
>
628+
Community
629+
</span>
600630
</li>
601631
</ul>
602632
<div

src/shared/components/TopcoderHeader/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export default class TopcoderHeader extends React.Component {
246246
<Link to={item.url}>
247247
{item.title}
248248
</Link>
249-
) : item.title}
249+
) : <span role="link" tabIndex={0}>{item.title}</span>}
250250
</li>
251251
);
252252
});

0 commit comments

Comments
 (0)