-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(Checkbox): add accessibility unit tests and docs (#7422)
* test(Checkbox): add AAT and WCAG tests * docs(Checkbox): add manual AVT guide * test(Checkbox): add more explicit assertions * test(Checkbox): remove unused import * Update packages/react/src/components/Checkbox/Checkbox-test.js Co-authored-by: Josh Black <josh@josh.black> Co-authored-by: Josh Black <josh@josh.black> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2bb2cc7
commit bdb4a9c
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Checkbox Component Accessibility Verification Testing | ||
|
||
Developers or designers wanting to manually verify the accessibility of the | ||
component can carry out the following steps: | ||
|
||
## Contrast | ||
|
||
- [ ] the Checkbox border has a contrast of 4.5:1 minimum against the page | ||
background | ||
|
||
## Screen reader | ||
|
||
Each screen reader should be tested when paired with its preferred browser. | ||
|
||
### VoiceOver on Safari | ||
|
||
1. {tab} "Checkbox. You are currently on a checkbox. To select or unselect this | ||
checkbox press ctrl-option-space" | ||
|
||
### JAWS on Edge/Chrome | ||
|
||
1. {tab} "Checkbox. Checkbox not checked" | ||
|
||
### NVDA on Firefox (optional, but recommended) | ||
|
||
1. {tab} "Checkbox. Checkbox not checked. To check press SPACEBAR" |