We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Current version of the library have a small issue with button color contrast
Light theme colors score:
Dark theme colors score:
To improve the accessibility score, the contrast ratio must be at least 7:1
To improve it, I suggest these colors:
#cc-main { --cc-btn-secondary-bg: #414e55; --cc-btn-secondary-color: #fff; } .cc--darkmode #cc-main { --cc-btn-secondary-bg: #96b6cd; --cc-btn-secondary-color: #1e1e1e; }
With these changes:
Light mode before:
Light mode after:
Light mode new score:
Dark mode before:
Dark mode after:
Dark mode new score:
No response
The text was updated successfully, but these errors were encountered:
Some useful tools:
https://webaim.org/resources/contrastchecker/ https://app.contrast-finder.org/
Sorry, something went wrong.
Nobody with a disability would complain about that.
The idea of different button backgrounds is to recognize "accept/reject" as easiest options and "preferences" for advanced information and settings.
Your suggestion may make some tools happy, but in fact worse for everybody.
Yes, the contrast between button and background is not visible - even for me. But that's not the point.
The label of the button is clearly visible, clickable and therefor usable and accessible.
No branches or pull requests
Description
Hi,
Current version of the library have a small issue with button color contrast
Light theme colors score:
Dark theme colors score:
To improve the accessibility score, the contrast ratio must be at least 7:1
Proposed solution
To improve it, I suggest these colors:
With these changes:
Light mode before:
Light mode after:
Light mode new score:
Dark mode before:
Dark mode after:
Dark mode new score:
Additional details
No response
The text was updated successfully, but these errors were encountered: