File tree 10 files changed +24
-18
lines changed
__tests__/shared/components
challenge-listing/Filters/__snapshots__
10 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ exports[`Default render 1`] = `
79
79
/>
80
80
</span >
81
81
<div
82
- aria-label = " Search "
82
+ aria-label = " Find members by username or skill "
83
83
className = " src-shared-components-TopcoderHeader-___style__search-icon___3w5nA"
84
84
data-menu = " search"
85
85
onBlur = { [Function ]}
@@ -372,7 +372,7 @@ exports[`Render with open menu 1`] = `
372
372
/>
373
373
</span >
374
374
<div
375
- aria-label = " Search "
375
+ aria-label = " Find members by username or skill "
376
376
className = " src-shared-components-TopcoderHeader-___style__search-icon___3w5nA"
377
377
data-menu = " search"
378
378
onBlur = { [Function ]}
@@ -704,7 +704,7 @@ exports[`Render with specified profile 1`] = `
704
704
</span >
705
705
</div >
706
706
<div
707
- aria-label = " Search "
707
+ aria-label = " Find members by username or skill "
708
708
className = " opened src-shared-components-TopcoderHeader-___style__search-icon___3w5nA"
709
709
data-menu = " search"
710
710
onBlur = { [Function ]}
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ exports[`Matches shallow shapshot 1`] = `
4
4
<div
5
5
className = " src-shared-components-SortingSelectBar-___style__sortingBar___3esqf"
6
6
>
7
- <h1
7
+ <h2
8
8
className = " src-shared-components-SortingSelectBar-___style__title___36eG5"
9
9
>
10
10
title
11
- </h1 >
11
+ </h2 >
12
12
<div
13
13
className = " src-shared-components-SortingSelectBar-___style__view-options-toggle-container___1N4rY"
14
14
>
@@ -80,10 +80,10 @@ exports[`Matches shallow shapshot 2`] = `
80
80
<div
81
81
className = " src-shared-components-SortingSelectBar-___style__sortingBar___3esqf"
82
82
>
83
- <h1
83
+ <h2
84
84
className = " src-shared-components-SortingSelectBar-___style__title___36eG5"
85
85
>
86
86
title
87
- </h1 >
87
+ </h2 >
88
88
</div >
89
89
` ;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ exports[`Matches shallow shapshot shapshot 2`] = `
109
109
<span >
110
110
<span
111
111
aria-checked = { false }
112
- aria-label = " Filter "
112
+ aria-label = " Design toggle button pressed Off "
113
113
className = " src-shared-components-challenge-listing-Filters-___ChallengeFilters__filter-switch-with-label___21Ups"
114
114
role = " switch"
115
115
>
@@ -126,7 +126,7 @@ exports[`Matches shallow shapshot shapshot 2`] = `
126
126
</span >
127
127
<span
128
128
aria-checked = { false }
129
- aria-label = " Filter "
129
+ aria-label = " Development toggle button pressed Off "
130
130
className = " src-shared-components-challenge-listing-Filters-___ChallengeFilters__filter-switch-with-label___21Ups"
131
131
role = " switch"
132
132
>
@@ -143,7 +143,7 @@ exports[`Matches shallow shapshot shapshot 2`] = `
143
143
</span >
144
144
<span
145
145
aria-checked = { false }
146
- aria-label = " Filter "
146
+ aria-label = " Data Science toggle button pressed Off "
147
147
className = " src-shared-components-challenge-listing-Filters-___ChallengeFilters__filter-switch-with-label___21Ups"
148
148
role = " switch"
149
149
>
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ exports[`Matches shallow shapshot 1`] = `
16
16
className = " src-shared-components-challenge-listing-Filters-ChallengeSearchBar-___style__SearchButton___3GzR0 src-shared-components-challenge-listing-Filters-ChallengeSearchBar-___style__active___8LjMb"
17
17
onClick = { [Function ]}
18
18
onKeyPress = { [Function ]}
19
+ role = " button"
20
+ tabIndex = " 0"
19
21
>
20
22
<ZoomIcon
21
23
className = " src-shared-components-challenge-listing-Filters-ChallengeSearchBar-___style__zoomIcon___3d_cL"
@@ -44,6 +46,8 @@ exports[`Matches shallow shapshot 2`] = `
44
46
className = " src-shared-components-challenge-listing-Filters-ChallengeSearchBar-___style__SearchButton___3GzR0"
45
47
onClick = { [Function ]}
46
48
onKeyPress = { [Function ]}
49
+ role = " button"
50
+ tabIndex = " 0"
47
51
>
48
52
<ZoomIcon
49
53
className = " src-shared-components-challenge-listing-Filters-ChallengeSearchBar-___style__zoomIcon___3d_cL"
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ export default function SortingSelectBar({
9
9
} ) {
10
10
return (
11
11
< div styleName = "sortingBar" >
12
- < h1 styleName = "title" >
12
+ < h2 styleName = "title" >
13
13
{ title }
14
- </ h1 >
14
+ </ h2 >
15
15
{
16
16
options ? (
17
17
< div styleName = "view-options-toggle-container" >
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ export default class TopcoderHeader extends React.Component {
366
366
{ userMenuHandle }
367
367
{ authButtons }
368
368
< div
369
- aria-label = "Search "
369
+ aria-label = "Find members by username or skill "
370
370
role = "button"
371
371
tabIndex = { 0 }
372
372
data-menu = "search"
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ export default function ChallengeHeader(props) {
262
262
< div styleName = "prizes-ops-container" >
263
263
< div styleName = "prizes-outer-container" >
264
264
< h2 styleName = "prizes-title" >
265
- PRIZES
265
+ Key Information
266
266
</ h2 >
267
267
< Prizes prizes = { prizes && prizes . length ? prizes : [ 0 ] } pointPrizes = { pointPrizes } />
268
268
{
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ function ChallengeCard({
131
131
to = { challengeDetailLink }
132
132
styleName = "challenge-title"
133
133
openNewTab = { openChallengesInNewTabs }
134
- > < h3 > { challenge . name } </ h3 >
134
+ > < p > { challenge . name } </ p >
135
135
</ Link >
136
136
< div styleName = "details-footer" >
137
137
< span styleName = "date" >
Original file line number Diff line number Diff line change @@ -76,21 +76,21 @@ export default function ChallengeFilters({
76
76
isCardTypeSet === 'Challenges'
77
77
? (
78
78
< span >
79
- < span styleName = "filter-switch-with-label" aria-label = "Filter" role = "switch" aria-checked = { isTrackOn ( TRACKS . DESIGN ) } >
79
+ < span styleName = "filter-switch-with-label" aria-label = { `Design toggle button pressed ${ isTrackOn ( TRACKS . DESIGN ) ? 'On' : 'Off' } ` } role = "switch" aria-checked = { isTrackOn ( TRACKS . DESIGN ) } >
80
80
< SwitchWithLabel
81
81
enabled = { isTrackOn ( TRACKS . DESIGN ) }
82
82
labelBefore = "Design"
83
83
onSwitch = { on => switchTrack ( TRACKS . DESIGN , on ) }
84
84
/>
85
85
</ span >
86
- < span styleName = "filter-switch-with-label" aria-label = "Filter" role = "switch" aria-checked = { isTrackOn ( TRACKS . DEVELOP ) } >
86
+ < span styleName = "filter-switch-with-label" aria-label = { `Development toggle button pressed ${ isTrackOn ( TRACKS . DEVELOP ) ? 'On' : 'Off' } ` } role = "switch" aria-checked = { isTrackOn ( TRACKS . DEVELOP ) } >
87
87
< SwitchWithLabel
88
88
enabled = { isTrackOn ( TRACKS . DEVELOP ) }
89
89
labelBefore = "Development"
90
90
onSwitch = { on => switchTrack ( TRACKS . DEVELOP , on ) }
91
91
/>
92
92
</ span >
93
- < span styleName = "filter-switch-with-label" aria-label = "Filter" role = "switch" aria-checked = { isTrackOn ( TRACKS . DATA_SCIENCE ) } >
93
+ < span styleName = "filter-switch-with-label" aria-label = { `Data Science toggle button pressed ${ isTrackOn ( TRACKS . DATA_SCIENCE ) ? 'On' : 'Off' } ` } role = "switch" aria-checked = { isTrackOn ( TRACKS . DATA_SCIENCE ) } >
94
94
< SwitchWithLabel
95
95
enabled = { isTrackOn ( TRACKS . DATA_SCIENCE ) }
96
96
labelBefore = "Data Science"
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ export default function ChallengeSearchBar({
36
36
styleName = { `SearchButton ${ query ? 'active' : '' } ` }
37
37
onClick = { ( ) => onSearch ( query . trim ( ) ) }
38
38
onKeyPress = { ( ) => onSearch ( query . trim ( ) ) }
39
+ tabIndex = "0"
40
+ role = "button"
39
41
>
40
42
< ZoomIcon styleName = "zoomIcon" />
41
43
</ span >
You can’t perform that action at this time.
0 commit comments