@@ -73,6 +73,9 @@ export default function ChallengeViewSelector(props) {
73
73
< div styleName = "mask right" />
74
74
< div styleName = "challenge-view-selector" >
75
75
< a
76
+ tabIndex = "0"
77
+ role = "tab"
78
+ aria-selected = { selectedView === DETAIL_TABS . DETAILS }
76
79
onClick = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . DETAILS ) ; } }
77
80
onKeyPress = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . DETAILS ) ; } }
78
81
styleName = { getSelectorStyle ( selectedView , DETAIL_TABS . DETAILS ) }
@@ -82,6 +85,9 @@ DETAILS
82
85
{
83
86
numRegistrants ? (
84
87
< a
88
+ tabIndex = "0"
89
+ role = "tab"
90
+ aria-selected = { selectedView === DETAIL_TABS . REGISTRANTS }
85
91
onClick = { ( e ) => {
86
92
handleSelectorClicked ( e , DETAIL_TABS . REGISTRANTS ) ;
87
93
} }
@@ -100,6 +106,9 @@ REGISTRANTS (
100
106
trackLower === 'design' && checkpointCount > 0
101
107
&& (
102
108
< a
109
+ tabIndex = "0"
110
+ role = "tab"
111
+ aria-selected = { selectedView === DETAIL_TABS . CHECKPOINTS }
103
112
onClick = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . CHECKPOINTS ) ; } }
104
113
onKeyPress = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . CHECKPOINTS ) ; } }
105
114
styleName = { getSelectorStyle ( selectedView , DETAIL_TABS . CHECKPOINTS ) }
@@ -113,6 +122,9 @@ CHECKPOINTS (
113
122
{
114
123
numSubmissions ? (
115
124
< a
125
+ tabIndex = "0"
126
+ role = "tab"
127
+ aria-selected = { selectedView === DETAIL_TABS . SUBMISSIONS }
116
128
onClick = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . SUBMISSIONS ) ; } }
117
129
onKeyPress = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . SUBMISSIONS ) ; } }
118
130
styleName = { getSelectorStyle ( selectedView , DETAIL_TABS . SUBMISSIONS ) }
@@ -126,6 +138,9 @@ SUBMISSIONS (
126
138
{
127
139
numWinners ? (
128
140
< a
141
+ tabIndex = "0"
142
+ role = "tab"
143
+ aria-selected = { selectedView === DETAIL_TABS . WINNERS }
129
144
onClick = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . WINNERS ) ; } }
130
145
onKeyPress = { ( e ) => { handleSelectorClicked ( e , DETAIL_TABS . WINNERS ) ; } }
131
146
styleName = { getSelectorStyle ( selectedView , DETAIL_TABS . WINNERS ) }
0 commit comments