Switch
How the Switch works with a keyboard and assistive tech.
Guidance#
A <button role="switch"> with aria-checked; Space or Enter flips it.
The label row and card name the switch with aria-labelledby, so it is announced as Dark mode, switch, on.
The small sizes keep a 24px hit area around the drawn track.
