components
components copied to clipboard
Accessibility issue (Mat Checkbox and Mat Slider): Ripple around checkbox or slider is not meeting sufficient color contrast ratio of 3:1 for WCAG AA compliance
Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
- Ripple around the Mat Checkbox and Mat Slider are not reaching the WCAG Non text contrast ratio of 3:1.
- Since the ratio is not met application is in a non complaint state for the mentioned components (Slider and Checkbox)
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-cwzzkd Steps to reproduce:
- Open Stack Blitz url above
- On the Preview the Mat Slider and Mat Checkbox are provided
- Select Mat Slider to toggle
- The Ripple around the round slider color is not meeting the non text contrast ratio for WCAG AA compliance (3:1)
- Similarly the Ripple around the Checkbox after selecting is not meeting the non text contrast ration for WCAG AA compliance (3:1)
Expected Behavior
- Both the Mat Slider and Mat Checkbox ripple color need to meet the non text contrast ratio (3:1) to be compliant since it is effecting Accessibility users.
Actual Behavior
- Both the Mat Slider and Mat Checkbox ripple color are not meeting the non text contrast ratio (3:1).
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Any help will take our application be more compliant for ADA and Accessibility
Thanks, Venkat P.
From looking at the stackblitz, this appears to be an issue with the slide-toggle, not the slider
Looks like this is obsolete with newer version 17.3.1. Showing as blue instead of yellow for checkbox.
To add onto this, I don't believe the ripple would fall under 1.4.11 Non-Text Contrast (AA) due to the ripple not being a part of the actual icon's presence and purpose. The contrast ratio that we would want to be concerned about is the actual control icon against the immediate background (checkmark against immediate background). While the ripple may not have a 3:1 color contrast ratio against the white background, it wouldn't be part of the actual icon/button contrast for non-text material.