Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 0850a4e

Browse files
author
Evan Horne
committed
fix(navmenu): skip to main now works
1 parent c8eaa3c commit 0850a4e

10 files changed

+83
-36
lines changed

src/Filter/__tests__/__snapshots__/BasicFilterContainer.test.tsx.snap

+1
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ exports[`BasicFilterContainer hide select message if disabled 1`] = `
901901
<div
902902
className="bf-selection"
903903
id="grade-bf"
904+
tabIndex={0}
904905
>
905906
<Component
906907
className="input-sm"

src/Filter/__tests__/__snapshots__/CombinedFilter.test.tsx.snap

+8
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ exports[`FilterContainer renders 1`] = `
337337
<div
338338
className="bf-selection"
339339
id="grade-bf"
340+
tabIndex={0}
340341
>
341342
<Component
342343
className="input-sm"
@@ -486,6 +487,7 @@ exports[`FilterContainer renders 1`] = `
486487
<div
487488
className="bf-selection"
488489
id="subjects-bf"
490+
tabIndex={0}
489491
>
490492
<label>
491493
Subjects
@@ -992,6 +994,7 @@ exports[`FilterContainer toggles the advanced filter 1`] = `
992994
<div
993995
className="bf-selection"
994996
id="grade-bf"
997+
tabIndex={0}
995998
>
996999
<Component
9971000
className="input-sm"
@@ -1141,6 +1144,7 @@ exports[`FilterContainer toggles the advanced filter 1`] = `
11411144
<div
11421145
className="bf-selection"
11431146
id="subjects-bf"
1147+
tabIndex={0}
11441148
>
11451149
<label>
11461150
Subjects
@@ -1647,6 +1651,7 @@ exports[`FilterContainer toggles the advanced filter 2`] = `
16471651
<div
16481652
className="bf-selection"
16491653
id="grade-bf"
1654+
tabIndex={0}
16501655
>
16511656
<Component
16521657
className="input-sm"
@@ -1796,6 +1801,7 @@ exports[`FilterContainer toggles the advanced filter 2`] = `
17961801
<div
17971802
className="bf-selection"
17981803
id="subjects-bf"
1804+
tabIndex={0}
17991805
>
18001806
<label>
18011807
Subjects
@@ -3125,6 +3131,7 @@ exports[`FilterContainer toggles the advanced filter 3`] = `
31253131
<div
31263132
className="bf-selection"
31273133
id="grade-bf"
3134+
tabIndex={0}
31283135
>
31293136
<Component
31303137
className="input-sm"
@@ -3274,6 +3281,7 @@ exports[`FilterContainer toggles the advanced filter 3`] = `
32743281
<div
32753282
className="bf-selection"
32763283
id="subjects-bf"
3284+
tabIndex={0}
32773285
>
32783286
<label>
32793287
Subjects

stories/AboutTestItems/__snapshots__/AboutTestItems.storybook.storyshot

+25-15
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ exports[`Storyshots About Test Items bad item type 1`] = `
1212
id="skip-main"
1313
>
1414
<a
15+
aria-current={false}
1516
className="skip-link"
16-
onKeyDown={[Function]}
17-
role="link"
18-
tabIndex={0}
17+
href="/BrowseItems"
18+
onClick={[Function]}
19+
onKeyUp={[Function]}
20+
style={undefined}
1921
>
2022
Skip to main content
2123
</a>
@@ -127,10 +129,12 @@ exports[`Storyshots About Test Items default 1`] = `
127129
id="skip-main"
128130
>
129131
<a
132+
aria-current={false}
130133
className="skip-link"
131-
onKeyDown={[Function]}
132-
role="link"
133-
tabIndex={0}
134+
href="/BrowseItems"
135+
onClick={[Function]}
136+
onKeyUp={[Function]}
137+
style={undefined}
134138
>
135139
Skip to main content
136140
</a>
@@ -242,10 +246,12 @@ exports[`Storyshots About Test Items default, param 1`] = `
242246
id="skip-main"
243247
>
244248
<a
249+
aria-current={false}
245250
className="skip-link"
246-
onKeyDown={[Function]}
247-
role="link"
248-
tabIndex={0}
251+
href="/BrowseItems"
252+
onClick={[Function]}
253+
onKeyUp={[Function]}
254+
style={undefined}
249255
>
250256
Skip to main content
251257
</a>
@@ -357,10 +363,12 @@ exports[`Storyshots About Test Items loading, param 1`] = `
357363
id="skip-main"
358364
>
359365
<a
366+
aria-current={false}
360367
className="skip-link"
361-
onKeyDown={[Function]}
362-
role="link"
363-
tabIndex={0}
368+
href="/BrowseItems"
369+
onClick={[Function]}
370+
onKeyUp={[Function]}
371+
style={undefined}
364372
>
365373
Skip to main content
366374
</a>
@@ -472,10 +480,12 @@ exports[`Storyshots About Test Items reject, param 1`] = `
472480
id="skip-main"
473481
>
474482
<a
483+
aria-current={false}
475484
className="skip-link"
476-
onKeyDown={[Function]}
477-
role="link"
478-
tabIndex={0}
485+
href="/BrowseItems"
486+
onClick={[Function]}
487+
onKeyUp={[Function]}
488+
style={undefined}
479489
>
480490
Skip to main content
481491
</a>

stories/Filter/__snapshots__/BasicFilter.storybook.storyshot

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ exports[`Storyshots Basic Filter DropDown: multiple filter items 1`] = `
1818
<div
1919
className="bf-selection"
2020
id="grade-bf"
21+
tabIndex={0}
2122
>
2223
<div
2324
className=""
@@ -99,6 +100,7 @@ exports[`Storyshots Basic Filter DropDown: one filter item 1`] = `
99100
<div
100101
className="bf-selection"
101102
id="grade-bf"
103+
tabIndex={0}
102104
>
103105
<div
104106
className=""
@@ -156,6 +158,7 @@ exports[`Storyshots Basic Filter RadioBtn: multiple filter items 1`] = `
156158
<div
157159
className="bf-selection"
158160
id="grade-bf"
161+
tabIndex={0}
159162
>
160163
<label>
161164
Grade
@@ -242,6 +245,7 @@ exports[`Storyshots Basic Filter RadioBtn: one filter item 1`] = `
242245
<div
243246
className="bf-selection"
244247
id="grade-bf"
248+
tabIndex={0}
245249
>
246250
<label>
247251
Grade

stories/Filter/__snapshots__/BasicFilterContainer.storybook.storyshot

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exports[`Storyshots Basic Filter Container Basic Filter only 1`] = `
1111
<div
1212
className="bf-selection"
1313
id="grade-bf"
14+
tabIndex={0}
1415
>
1516
<div
1617
className=""
@@ -66,6 +67,7 @@ exports[`Storyshots Basic Filter Container Basic Filter only 1`] = `
6667
<div
6768
className="bf-selection"
6869
id="subjects-bf"
70+
tabIndex={0}
6971
>
7072
<label>
7173
Subjects
@@ -166,6 +168,7 @@ exports[`Storyshots Basic Filter Container Basic Filter with Advanced filter exp
166168
<div
167169
className="bf-selection"
168170
id="grade-bf"
171+
tabIndex={0}
169172
>
170173
<div
171174
className=""
@@ -221,6 +224,7 @@ exports[`Storyshots Basic Filter Container Basic Filter with Advanced filter exp
221224
<div
222225
className="bf-selection"
223226
id="subjects-bf"
227+
tabIndex={0}
224228
>
225229
<label>
226230
Subjects

stories/Filter/__snapshots__/Filter.storybook.storyshot

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exports[`Storyshots Filter Container Contains both Basic and Advanced Filter 1`]
1414
<div
1515
className="bf-selection"
1616
id="grade-bf"
17+
tabIndex={0}
1718
>
1819
<div
1920
className=""
@@ -69,6 +70,7 @@ exports[`Storyshots Filter Container Contains both Basic and Advanced Filter 1`]
6970
<div
7071
className="bf-selection"
7172
id="subjects-bf"
73+
tabIndex={0}
7274
>
7375
<label>
7476
Subjects

stories/Filter/__snapshots__/SIWFilter.storybook.storyshot

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
1414
<div
1515
className="bf-selection"
1616
id="grade-bf"
17+
tabIndex={0}
1718
>
1819
<div
1920
className=""
@@ -69,6 +70,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
6970
<div
7071
className="bf-selection"
7172
id="subjects-bf"
73+
tabIndex={0}
7274
>
7375
<div
7476
className=""
@@ -216,6 +218,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
216218
<div
217219
className="bf-selection"
218220
id="techtype-bf"
221+
tabIndex={0}
219222
>
220223
<div
221224
className=""
@@ -313,6 +316,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
313316
<div
314317
className="bf-selection"
315318
id="calculator-bf"
319+
tabIndex={0}
316320
>
317321
<div
318322
className=""

stories/ItemBank/__snapshots__/ItemBank.storybook.storyshot

+10-6
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ exports[`Storyshots Item Bank default 1`] = `
1212
id="skip-main"
1313
>
1414
<a
15+
aria-current={false}
1516
className="skip-link"
16-
onKeyDown={[Function]}
17-
role="link"
18-
tabIndex={0}
17+
href="/BrowseItems"
18+
onClick={[Function]}
19+
onKeyUp={[Function]}
20+
style={undefined}
1921
>
2022
Skip to main content
2123
</a>
@@ -282,10 +284,12 @@ exports[`Storyshots Item Bank default error client 1`] = `
282284
id="skip-main"
283285
>
284286
<a
287+
aria-current={false}
285288
className="skip-link"
286-
onKeyDown={[Function]}
287-
role="link"
288-
tabIndex={0}
289+
href="/BrowseItems"
290+
onClick={[Function]}
291+
onKeyUp={[Function]}
292+
style={undefined}
289293
>
290294
Skip to main content
291295
</a>

stories/Layout/__snapshots__/Layout.storybook.storyshot

+15-9
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ exports[`Storyshots Layout name links body 1`] = `
1212
id="skip-main"
1313
>
1414
<a
15+
aria-current={false}
1516
className="skip-link"
16-
onKeyDown={[Function]}
17-
role="link"
18-
tabIndex={0}
17+
href="/BrowseItems"
18+
onClick={[Function]}
19+
onKeyUp={[Function]}
20+
style={undefined}
1921
>
2022
Skip to main content
2123
</a>
@@ -183,10 +185,12 @@ exports[`Storyshots Layout name links header and body 1`] = `
183185
id="skip-main"
184186
>
185187
<a
188+
aria-current={false}
186189
className="skip-link"
187-
onKeyDown={[Function]}
188-
role="link"
189-
tabIndex={0}
190+
href="/BrowseItems"
191+
onClick={[Function]}
192+
onKeyUp={[Function]}
193+
style={undefined}
190194
>
191195
Skip to main content
192196
</a>
@@ -359,10 +363,12 @@ exports[`Storyshots Layout name no links no body 1`] = `
359363
id="skip-main"
360364
>
361365
<a
366+
aria-current={false}
362367
className="skip-link"
363-
onKeyDown={[Function]}
364-
role="link"
365-
tabIndex={0}
368+
href="/BrowseItems"
369+
onClick={[Function]}
370+
onKeyUp={[Function]}
371+
style={undefined}
366372
>
367373
Skip to main content
368374
</a>

stories/Layout/__snapshots__/LayoutNav.storybook.storyshot

+10-6
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ exports[`Storyshots Layout Nav name links 1`] = `
2222
id="skip-main"
2323
>
2424
<a
25+
aria-current={false}
2526
className="skip-link"
26-
onKeyDown={[Function]}
27-
role="link"
28-
tabIndex={0}
27+
href="/BrowseItems"
28+
onClick={[Function]}
29+
onKeyUp={[Function]}
30+
style={undefined}
2931
>
3032
Skip to main content
3133
</a>
@@ -139,10 +141,12 @@ exports[`Storyshots Layout Nav name no links 1`] = `
139141
id="skip-main"
140142
>
141143
<a
144+
aria-current={false}
142145
className="skip-link"
143-
onKeyDown={[Function]}
144-
role="link"
145-
tabIndex={0}
146+
href="/BrowseItems"
147+
onClick={[Function]}
148+
onKeyUp={[Function]}
149+
style={undefined}
146150
>
147151
Skip to main content
148152
</a>

0 commit comments

Comments
 (0)