Accessibility testing with aXe#219
Open
ozcoder wants to merge 7 commits intocloudflare:mainfrom
Open
Conversation
Added command line option --a11y which takes a JSON object as a parameter. Collect the accessibility metrics if the A11Y tag (rules level) has been asked for. Handle test exclusion of a HTML tag by its class or ID as a CSS selector. Allow disabling of individual rules. Write out the accessibility results as a11y.json file. Added types to support the --a11y option.
Added ZOD config for --a11y command line option.
Contributor
Author
|
I may need some help with the zod configuration. It works, but doesn't feel correct. Note: This PR does not include any changes to the telescopetest website. I'm not sure if that should be a separate ticket or not. |
Contributor
|
We are looking into the license and allowability for https://github.com/dequelabs/axe-core/. |
Contributor
|
We are good to go with this. @sergeychernyshev will need to review. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added the
--a11ycommand line option to run an accessibility test on the webpage. It produces a JSON report file calleda11y.json.The options for the command line are in JSON format. Example :-
--a11y '{"tags": ["wcag2aa"], "disable": ["color-contrast"]}'See https://github.com/dequelabs/axe-core/blob/HEAD/doc/rule-descriptions.md for more information.
Closes #60