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

Opacity ignored for minimum contrast rule 1.4.3 #54

Closed
meisterz39 opened this issue Feb 9, 2024 · 2 comments
Closed

Opacity ignored for minimum contrast rule 1.4.3 #54

meisterz39 opened this issue Feb 9, 2024 · 2 comments

Comments

@meisterz39
Copy link

meisterz39 commented Feb 9, 2024

Describe the bug

The ARC toolkit can be tricked into ignoring contrast issues so long as the contrast stems from opacity rather than a color value.

To Reproduce

  1. Take any color with proper contrast, set it to be highly transparent
  2. Run ARC against the page
body { background-color: #fff }
.color-1 { color: black; } // Passes
.color-2 { color: #ddd; } // Fails
.color-3 { color: black; opacity: 0.2; } // Passes

Expected behavior

Color contrast tests should account for opacity and correctly fail when a color is too transparent to produce adequate contrast

Screenshots

Uploading image.png…

Version information

  • Browser and version: Chrome Version 121.0.6167.140
  • ARC Toolkit version: 5.6.0
@ferllings
Copy link
Member

Fix already done on rules engine.
Should be fixed in next release

@poorgeek
Copy link
Member

Closing as this was fixed in ARC Toolkit 5.7.0.

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