Login
You're viewing the functional.cafe public feed.
  • Nov 20, 2026, 3:43 PM

    @aardrian OMG, people should just use a checkbox. I also hate that some of the justification for this was "but there's an aria role for switches, and screen readers announce them better (with "on" instead of "checked")."

    💬 2🔄 0⭐ 0

Replies

  • Nov 20, 2026, 3:51 PM

    @jyasskin Agreed. The justification was always poop (and too many folks forget they are not tri-state, unlike checkboxes).

    Though toggles really are a try-state control — it takes three presses to find out if it’s off.

    💬 0🔄 0⭐ 0
  • Nov 20, 2026, 3:53 PM

    @jyasskin @aardrian I'm one screen reader user for whom that reasoning rings completely false. Particularly on Windows where switches have not been a common part of the control lexicon, I frequently find their screen reader presentation actively confusing.

    Granted, that's partially down to Web authors changing both the name and the state simultaneously so you end up with "switch on turn off the lights" or "switch off standard mode". NVDA also doesn't help matters by positioning the role and state before the name in browse mode, and not inserting any pauses into the speech stream for separation.

    That said, I don't think the same issues occur as frequently with checkboxes and toggle buttons.

    💬 0🔄 0⭐ 0