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

Add ability to ignore certain results #4707

Open
jpzwarte opened this issue Feb 10, 2025 · 1 comment
Open

Add ability to ignore certain results #4707

jpzwarte opened this issue Feb 10, 2025 · 1 comment
Labels
core Issues in the core code (lib/core) feat New feature or enhancement

Comments

@jpzwarte
Copy link

Product

axe-core

Feature Description

The color-contrast rule sometimes outputs Element's background color could not be determined because it is overlapped by another element messages. These messages are a result of how the CSS & DOM is structured and not something that is easily "fixed". Instead i would like the ability to ignore these specific messages. I do NOT want to disable the entire color-contrast rule. Just these results.

Perhaps

ignoreResults: `Element's background color could not be determined because it is overlapped by another element`

Or

ignoreResults: /(overlapped by another element)/
@jpzwarte jpzwarte added feat New feature or enhancement ungroomed Ticket needs a maintainer to prioritize and label labels Feb 10, 2025
@WilcoFiers
Copy link
Contributor

I think that's a reasonable proposal. Axe already has an option to allow setting failed results to be incomplete (needs review) instead. I think something that makes all incomplete results of one rule an automatic pass would make sense to me.

@WilcoFiers WilcoFiers added core Issues in the core code (lib/core) and removed ungroomed Ticket needs a maintainer to prioritize and label labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues in the core code (lib/core) feat New feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants