w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 49 forks source link

Consider adding menubar and toolbar to fieldset #400

Open scottaohara opened 2 years ago

scottaohara commented 2 years ago

Semantically being groupings of related controls, it makes sense that a fieldset would allow for these roles that have a similar purpose.

Additionally, at least with some quick testing, a legend within a fieldset with one of these roles would allow a naming mechanism without use of aria-label or aria-labelledby. Would want to test this more, but would expect similar results to #350

scottaohara commented 1 year ago

test cases and notes on behaviors - https://codepen.io/scottohara/pen/ExpaeEj

outside of some minor oddities with Safari/VO (bug filed for iOS), it seems to me that fieldset should allow the following roles: