Your daily frequent11y newsletter, brought to you by @ChrisBAshton:
If you ARIA label something, give it a role
- Article by Marco Zehe, advising that any time you use an
aria-labeloraria-labelledbyattribute, you must also give the thing arole. He suggests that a label without a role is harder to understand: “a div with an aria-label is much more meaningful if it is clear that it groups some elements together [by also adding role=’group’]”. What’s interesting is his prediction that the spec will change in future to disallow anyaria-labelthat does not also have arole, forcing developers to mark up their pages correctly.
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.