Your daily frequent11y newsletter, brought to you by @ChrisBAshton:
- Article by Sarah Higley, exploring how best to denote the state of a Play/Pause video button for screen reader users. Most ‘toggle buttons’ for a binary state should have an
aria-pressed
attribute with value “on” or “off”; screen readers communicate this ‘state change’ more quickly than a change in property (such asaria-label
). Sarah argues that the play/pause button, however, is the exception to the rule and should only change thearia-label
(from “Play” to “Pause”), as changes in state don’t make sense in this context (“play button off”). Most importantly, avoid changing both or you’ll confuse your users (“play button, on” vs “pause button, off”).
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.