News for hackers. Stuff that matters.
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by RobMurray on Thursday January 19, 2023 @05:25AM (#34438752)
It's very common for developers to make accessibility worse by doing things like this. I have seen things where the two states to a screen reader are something like: "disable foo toggle button pressed" and "enable foo toggle button not pressed". Why not just a checkbox labeled "foo"?
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by chrismorgan on Thursday January 19, 2023 @05:44AM (#34438881)
Related reading, if people are wondering about switch accessibility on the web: https://w3c.github.io/aria-practices/#switch