Skip to content

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

@WilcoFiers

Description

@WilcoFiers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or enhancementgood first issueFor first-time contributorsprA pr has been created for the issuerulesIssue or false result from an axe-core rule

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions