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

Ignore rules per selector #655

Open
jurajk opened this issue Sep 12, 2022 · 1 comment
Open

Ignore rules per selector #655

jurajk opened this issue Sep 12, 2022 · 1 comment

Comments

@jurajk
Copy link

jurajk commented Sep 12, 2022

Expected behaviour

Config should allow to ignore a specific rule on certain selector. E.g. we know we have insufficient contrast on buttons, but can't do anything about it (brand rules). This way, pa11y would ignore contrast issues, but only on buttons, and fail if there are any other issues with these buttons.

Actual behaviour

Currently, it is only possible to ignore a rule or selector completely

@josebolos
Copy link
Member

In the meantime, a workaround may be possible using the hideElements option:
https://github.com/pa11y/pa11y#hideelements-string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants