The toggle must be operable with the Space bar and use semantic HTML so screen readers announce its label and on/off state.
The requirement (from the design system site)
The toggle must be operable with the Space bar and use semantic HTML so screen readers announce its label and on/off state.
Why it matters to users
A screen-reader user needs to hear a toggle's name and whether it is on or off, for example for text message alerts. A toggle drawn with divs announces no state and ignores the Space bar, so they cannot tell whether the setting changed.
How to fix it
Build toggles from input type="checkbox" with role="switch" or a button with aria-pressed, give them a name, or use gup-toggle, and check that Space switches them. Then scan again.
How we measure it
Find toggles (role=switch, gup-toggle, switch/toggle checkboxes) and on/off settings that act at once (accessibility bar: contrast, dark mode, hide videos, screen reader). Pass input[type=checkbox], button[aria-pressed] or a focusable role=switch/checkbox with aria-checked, with an accessible name; fail on links or divs with no role or no on/off state. Each control is counted once across pages.
English page timed out in our render; requirement_en translated from the official Arabic page.