-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Insufficient contrast on borders #38480
Comments
is the issue still open ? if so I would very much like to contribute to it? |
Hello, |
Reacting to #38489 (comment):
I think this regression happened in fc3f4b67:
I see two options to fix this:
@mdo which option do you prefer? Btw, I also checked the contrast for dark mode ( |
Hello @xi |
Please a fix for this, as the checkboxes are now almost not visible in light mode |
Please, a quick fix is needed. Light mode is almost unusable! |
Prerequisites
Describe the issue
WCAG 2.1 requires a contrast of 3:1 for non-text content. Many elements, e.g. form inputs or checkboxes, mostly consist of borders, at least in some of their states. It is therefore important that the border color has sufficient contrast to the background.
#888888
would have sufficient contrast to white. Bootstrap 5.2 uses#ced4da
, which only has a contrast of 1.49 to white. Bootstrap 5.3 takes this even further by using#dee2e6
which only has a contrast of 1.3 to white.I do not have any vision impairments that I know of, but to me these borders are practically invisible (depending on the lighting conditions). I strongly recommend to revert at least to the level of Bootstrap 5.2.
Bootstrap 5.3 introduces variables for the border color, so a workaround would be to set
--bs-border-color: #888888
.Reduced test cases
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Firefox
What version of Bootstrap are you using?
5.3.0-alpha3
The text was updated successfully, but these errors were encountered: