Chris Ashton

dai11y 10/01/2020

Your daily dose of a11y:

If you ARIA label something, give it a role

  • Article by Marco Zehe, advising that any time you use an aria-label or aria-labelledby attribute, you must also give the thing a role. 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 any aria-label that does not also have a role, forcing developers to mark up their pages correctly.

This daily dose of accessibility news and TLDR summary is brought to you by @ChrisBAshton. If you find these too frequent, try week11y or fortnight11y instead.

Loading...