Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New color-contrast-enhanced rule (WCAG AAA) #3189

Closed
WilcoFiers opened this issue Oct 6, 2021 · 3 comments
Closed

New color-contrast-enhanced rule (WCAG AAA) #3189

WilcoFiers opened this issue Oct 6, 2021 · 3 comments
Labels
feat New feature or enhancement good first issue For first-time contributors pr A pr has been created for the issue rules Issue or false result from an axe-core rule

Comments

@WilcoFiers
Copy link
Contributor

WilcoFiers commented Oct 6, 2021

We're increasingly starting to see folks ask for AAA tests. One rule we could easily add is a color-contrast-enhanced rule, which uses 7:1 contrast minimum for regular text, and 4.5:1 for large and bold text. See: https://www.w3.org/TR/WCAG21/#contrast-enhanced

This rule will be a copy of the existing color-contrast rule and check, using different check option defaults.

This rule will have to be off by default. Whether or not we do this for all AAA rules is yet to be decided. Currently the only AAA rule we have is on by default, but for something like color-contrast, it's probably not reasonable to keep it on.

@WilcoFiers WilcoFiers added feat New feature or enhancement rules Issue or false result from an axe-core rule good first issue For first-time contributors labels Oct 6, 2021
@dan-tripp
Copy link
Contributor

I'll try to fix this.

@WilcoFiers
Copy link
Contributor Author

Sure thing, go for it.

@straker straker added the pr A pr has been created for the issue label Feb 2, 2022
@padmavemulapati
Copy link

Validated with the latest develop branch code base,
failing for the ratio:
`


image

and
Passing for the ratio:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or enhancement good first issue For first-time contributors pr A pr has been created for the issue rules Issue or false result from an axe-core rule
Projects
None yet
Development

No branches or pull requests

4 participants