charlie-yao / react-aria-widgets

Implementations of WAI-ARIA widgets and design patterns in React.
MIT License
2 stars 0 forks source link

"region" role, aria-labelledby, and BaseAccordionPanel #194

Open charlie-yao opened 1 year ago

charlie-yao commented 1 year ago

The default element for BaseAccordionPanel is <section>, and I thought it always had an implied role of region. Apparently, it only has the region role if it has an accessible label. Otherwise, it's generic. The implementation and documentation should be updated to account for this - e.g. should we provide a way to NOT set aria-labelledby if the developer wants to avoid landmark region proliferation?

Related: #193