Skip to content

Commit 0adf857

Browse files
committed
changes for #2829
1 parent 84a0ae5 commit 0adf857

File tree

1 file changed

+10
-0
lines changed
  • src/shared/components/challenge-detail/Header/TabSelector

1 file changed

+10
-0
lines changed

src/shared/components/challenge-detail/Header/TabSelector/index.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export default function ChallengeViewSelector(props) {
7373
<div styleName="mask right" />
7474
<div styleName="challenge-view-selector">
7575
<a
76+
tabIndex="0"
77+
role="link"
7678
onClick={(e) => { handleSelectorClicked(e, DETAIL_TABS.DETAILS); }}
7779
onKeyPress={(e) => { handleSelectorClicked(e, DETAIL_TABS.DETAILS); }}
7880
styleName={getSelectorStyle(selectedView, DETAIL_TABS.DETAILS)}
@@ -82,6 +84,8 @@ DETAILS
8284
{
8385
numRegistrants ? (
8486
<a
87+
tabIndex="0"
88+
role="link"
8589
onClick={(e) => {
8690
handleSelectorClicked(e, DETAIL_TABS.REGISTRANTS);
8791
}}
@@ -100,6 +104,8 @@ REGISTRANTS (
100104
trackLower === 'design' && checkpointCount > 0
101105
&& (
102106
<a
107+
tabIndex="0"
108+
role="link"
103109
onClick={(e) => { handleSelectorClicked(e, DETAIL_TABS.CHECKPOINTS); }}
104110
onKeyPress={(e) => { handleSelectorClicked(e, DETAIL_TABS.CHECKPOINTS); }}
105111
styleName={getSelectorStyle(selectedView, DETAIL_TABS.CHECKPOINTS)}
@@ -113,6 +119,8 @@ CHECKPOINTS (
113119
{
114120
numSubmissions ? (
115121
<a
122+
tabIndex="0"
123+
role="link"
116124
onClick={(e) => { handleSelectorClicked(e, DETAIL_TABS.SUBMISSIONS); }}
117125
onKeyPress={(e) => { handleSelectorClicked(e, DETAIL_TABS.SUBMISSIONS); }}
118126
styleName={getSelectorStyle(selectedView, DETAIL_TABS.SUBMISSIONS)}
@@ -126,6 +134,8 @@ SUBMISSIONS (
126134
{
127135
numWinners ? (
128136
<a
137+
tabIndex="0"
138+
role="link"
129139
onClick={(e) => { handleSelectorClicked(e, DETAIL_TABS.WINNERS); }}
130140
onKeyPress={(e) => { handleSelectorClicked(e, DETAIL_TABS.WINNERS); }}
131141
styleName={getSelectorStyle(selectedView, DETAIL_TABS.WINNERS)}

0 commit comments

Comments
 (0)