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
[Toggle] Text when Disabled does not provide enough contrast and is difficult to read
Environment
All browsers
Detailed description
Latest version of Carbon. We notice the colors chosen for when the Toggle component is disabled doesn't provide enough contrast to read the text. Furthermore, in our product specifically (SOAR Playbook Designer), we use Gray-90 as the background for the Toggle, and when disabled, the Toggle SVG's background matches the same color and isn't discernible.
What WCAG 2.1 checkpoint does the issue violate?
Text contrast. Although disabled buttons are exempt from contrast requirements, we think it would still be beneficial to provide clearer contrast in these cases.
Additional information
Example in product (SOAR Playbook Designer) Gray-90 background:
Example in Storybook, white background:
The text was updated successfully, but these errors were encountered:
abbeyhrt
transferred this issue from carbon-design-system/carbon-website
Sep 27, 2021
The color token for disabled text should be $disabled-02. @lily-peng But for this situation, are you showing text and a status indicator to represent that the playbook is disabled? Instead of using disabled text, you could benefit from using a read-only state instead if it is important for the user to read and understand the content.
Text contrast. Although disabled buttons are exempt from contrast requirements, we think it would still be beneficial to provide clearer contrast in these cases.
If a user needs to be able to read the toggle then you should not be using the disabled component. Disabled components are not accessible by screen-readers and will be skipped and therefore increase the legibility contrast will only help sighted user with the disabled state.
I'd advise exploring other ways to signal the ux interaction you're trying at achieve such as a read-only state as Lauren suggest or perhaps adding a lock icon beside the toggle to signify it can't be changed.
[Toggle] Text when Disabled does not provide enough contrast and is difficult to read
Environment
All browsers
Detailed description
Latest version of Carbon. We notice the colors chosen for when the Toggle component is disabled doesn't provide enough contrast to read the text. Furthermore, in our product specifically (SOAR Playbook Designer), we use Gray-90 as the background for the Toggle, and when disabled, the Toggle SVG's background matches the same color and isn't discernible.
Text contrast. Although disabled buttons are exempt from contrast requirements, we think it would still be beneficial to provide clearer contrast in these cases.
Additional information
Example in product (SOAR Playbook Designer) Gray-90 background:
Example in Storybook, white background:
The text was updated successfully, but these errors were encountered: