Skip to content

Commit d8be8af

Browse files
authored
Merge pull request #2943 from PrakashDurlabhji/issue_2754
issue 2754 fix
2 parents fd3a066 + ad528d7 commit d8be8af

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
@@ -294,7 +304,12 @@ exports[`Render with open menu 1`] = `
294304
onMouseLeave={[Function]}
295305
onTouchStart={[Function]}
296306
>
297-
Compete
307+
<span
308+
role="link"
309+
tabIndex={0}
310+
>
311+
Compete
312+
</span>
298313
</li>
299314
<li
300315
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -316,7 +331,12 @@ exports[`Render with open menu 1`] = `
316331
onMouseLeave={[Function]}
317332
onTouchStart={[Function]}
318333
>
319-
Community
334+
<span
335+
role="link"
336+
tabIndex={0}
337+
>
338+
Community
339+
</span>
320340
</li>
321341
</ul>
322342
<div
@@ -570,7 +590,12 @@ exports[`Render with specified profile 1`] = `
570590
onMouseLeave={[Function]}
571591
onTouchStart={[Function]}
572592
>
573-
Compete
593+
<span
594+
role="link"
595+
tabIndex={0}
596+
>
597+
Compete
598+
</span>
574599
</li>
575600
<li
576601
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -592,7 +617,12 @@ exports[`Render with specified profile 1`] = `
592617
onMouseLeave={[Function]}
593618
onTouchStart={[Function]}
594619
>
595-
Community
620+
<span
621+
role="link"
622+
tabIndex={0}
623+
>
624+
Community
625+
</span>
596626
</li>
597627
</ul>
598628
<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)