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
To meet WCAG 2.0 A (minimum) accessibility requirements, keyboard focus must be visible for all interactive elements. Because the switch is styling the overrides an HTML checkbox, it needs to maintain visible focus/interactivity.
What happens instead?
When tabbing through a page with a switch element, the keyboard focuses on the element but nothing is visible, making it unclear/unusable for keyboard navigation.
Adding two extra color for active-switch and not-active-switch on focus(focus visible). the changing color only occurs on keyboard events (like tab)
Resolves: foundation#12499
What should happen?
To meet WCAG 2.0 A (minimum) accessibility requirements, keyboard focus must be visible for all interactive elements. Because the switch is styling the overrides an HTML checkbox, it needs to maintain visible focus/interactivity.
What happens instead?
When tabbing through a page with a switch element, the keyboard focuses on the element but nothing is visible, making it unclear/unusable for keyboard navigation.
Possible Solution
Something like:
.switch-input:focus + label { border: 2px solid get-color(primary-200); }
Test Case and/or Steps to Reproduce (for bugs)
How to reproduce:
Context
WCAG is a common and legally required standard to use for many websites.
Your Environment
Checklist
The text was updated successfully, but these errors were encountered: