You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiCheckBox] The contrast ratio of unchecked checkboxes is below the WCAG threshold #6690
WCAG success criterion 1.4.11 - non-text contrast - AA
Steps to reproduce
Open Dashboard
Actual Result
The following contrast ratios of interactive elements do not conform to the minimum contrast requirements of 3:1. Therefore, these elements are more difficult to perceive, and may be completely missed by users with low vision:
Borders of checkboxes 1,6:1,
Toggle-switches 1,2:1.
Expected Result
Between foreground and background, the minimum contrast ratio should be 3:1.
Meta Issue
n.a.
Kibana Version:
8.3 OS:
Microsoft Windows 10 Enterprise (64-bit) Browser:
Google Chrome 109.0.5414.75 (64-Bit)
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.
changed the title [-](Accessibility) The contrast ratio of some graphical elements is below the threshold - example 1[/-][+][EuiCheckBox] The contrast ratio of unchecked checkboxes is below the WCAG threshold[/+]on Apr 5, 2023
@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.
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:
Activity
elasticmachine commentedon Apr 5, 2023
Pinging @elastic/kibana-accessibility (Project:Accessibility)
elasticmachine commentedon Apr 5, 2023
nreese commentedon Apr 5, 2023
Closing, since these are EUI components, https://elastic.github.io/eui/#/forms/selection-controls#checkbox, and changes need to be made in EUI
bhavyarm commentedon Apr 5, 2023
nreese commentedon Apr 5, 2023
cee-chen commentedon Apr 5, 2023
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.
cee-chen commentedon Apr 5, 2023
#6692 also seems related to this.
👋 Removing tags and transferring this to https://github.com/elastic/eui, along with several other EUI-specific issues
[-](Accessibility) The contrast ratio of some graphical elements is below the threshold - example 1[/-][+][EuiCheckBox] The contrast ratio of unchecked checkboxes is below the WCAG threshold[/+]1Copenut commentedon Apr 5, 2023
@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: