dai11y 16/10/2020

Your daily frequent11y newsletter, brought to you by @ChrisBAshton:

Accessible HTML toggle buttons

  • Erik Kroes describes his accessible toggle switch, which makes use of a <button> with role="switch" and aria-checked="true" attributes. He chose <button> because “I want something to change instantly which a checkbox really should not be doing. In my experience, checkboxes that change things often clash with WCAG Criterion 3.2.1: On Focus. A aligns better with the goal of instant change”. It’s always interesting to see how different devs approach this problem.

Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.

Loading...