Workday / canvas-kit

Development kits to implement UI following the Workday Canvas Design System (https://canvas.workday.com/). See our Component Storybook -
https://workday.github.io/canvas-kit/
Apache License 2.0
301 stars 221 forks source link

Increase the visual difference between the Toolbar Icon Button on/off state #2884

Open myvuuu opened 2 months ago

myvuuu commented 2 months ago

💡 Suggestion

Update toggle on and off state of the Toolbar Icon button to be more visually distinct.

Success Criteria

Motivation

The toggle on and off state of the Toolbar Icon button isn't visually distinct enough for users with low vision / color blindness to defer the toggle state based on color alone.

Example

Please provide some examples of this suggestion in practice.

williamjstanton commented 2 months ago

Suggesting under Motivation: To improve conformance with WCAG 2.2 guidelines 1.4.1 Use of color and 1.4.11 Non-text contrast.

Toggle buttons with an inverted color scheme:

jira format toolbar

Toggle buttons with an outline:

outlook format toolbar

Toggle buttons with a fill or no-fill scheme:

slack-fill-no-fill