WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Relating answer options to their question

for

From: glen walker
Date: Aug 31, 2018 12:03PM


Isabel, going back to your original question on grouping answers with the
question, even though the first rule of ARIA
<https://www.w3.org/TR/using-aria/#rule1> recommends using native markup
before using aria attributes, so in this case using a fieldset/legend
before role="group" and aria-label, I almost always use role="group" in
these situations, mainly because of what Jared and Birkir already mentioned
- that fieldset/legend can sometimes be overly verbose. I like how the
aria-label is announced for the role="group" when you tab to the first
checkbox (or the last checkbox if you shift+tab into the group) and then
it's silent after that.

Glen