Commit 00786f8
fix(tag): adds various fixes for screen reader accessibility; adds AAT (#4863)
* fix(filter): add role button and update story for clarity
* fix(tag): change span to button, remove role and add button-reset helper
* fix(tag): add button-reset to tag styling
* test(tag): add Axe test
* fix(tag): remove unused aria, title, tab-index; add DAP
* test(tag): add busted unit tests for screenreader HALP
* test(tag): add aria-label test
* Update packages/react/src/components/Tag/Tag-test.js
Co-Authored-By: Josh Black <josh@josh.black>
* Update packages/react/src/components/Tag/Tag-test.js
Co-Authored-By: Josh Black <josh@josh.black>
* Update packages/react/src/components/Tag/Tag-test.js
Co-Authored-By: Josh Black <josh@josh.black>
* Update packages/react/src/components/Tag/Tag-test.js
Co-Authored-By: Josh Black <josh@josh.black>
* test(tags): add less specific check for children for aria-label
* test(tag): add <main> wrapper for DAP test element
Co-authored-by: Josh Black <josh@josh.black>1 parent 21025ae commit 00786f8
File tree
4 files changed
+45
-9
lines changed- packages
- components/src/components/tag
- react/src/components/Tag
4 files changed
+45
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
17 | 50 | | |
18 | 51 | | |
19 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
52 | | - | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
0 commit comments