-
Notifications
You must be signed in to change notification settings - Fork 843
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
[EuiCheckBox] The contrast ratio of unchecked checkboxes is below the WCAG threshold #6690
Comments
Pinging @elastic/kibana-accessibility (Project:Accessibility) |
This comment was marked as outdated.
This comment was marked as outdated.
Closing, since these are EUI components, https://elastic.github.io/eui/#/forms/selection-controls#checkbox, and changes need to be made in EUI |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Instead of closing, any objection to transferring/moving this to the EUI repo? @1Copenut can you also chime in on this? I was personally not familiar w/ contrast ratio requirements for non-text elements. This feels like it'll impact many more things (such as EuiFieldText) etc. as well. |
#6692 also seems related to this. 👋 Removing tags and transferring this to https://github.com/elastic/eui, along with several other EUI-specific issues |
@cee-chen It very well might affect other components. The spec for SC 1.4.11 Non-text Contrast (Level AA)(https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html) says elements must have a 3:1 color contrast ratio to adjacent colors. It's a hard one to spot for, so I'm glad a screenshot was provided. In the example our light gray checkbox borders would need to be darkened so they are 3:1 with the white background. Same contrast ratio would apply for dark mode, but if we get one operating correctly, that gives us a starting point. Spec 1.4.11 also has guidance that disabled elements do not have to meet the 3:1 threshold:
|
WCAG success criterion 1.4.11 - non-text contrast - AA
Steps to reproduce
Actual Result
Borders of checkboxes 1,6:1,
Toggle-switches 1,2:1.
Expected Result
Meta Issue
n.a.
Kibana Version:
8.3
OS:
Microsoft Windows 10 Enterprise (64-bit)
Browser:
Google Chrome 109.0.5414.75 (64-Bit)
Screen reader:
n.a.
Relevant WCAG Criteria:
WCAG success criterion 1.4.11 - non-text contrast - AA
https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html
Relevant ARIA spec:
n.a.
The text was updated successfully, but these errors were encountered: