nkbt/react-collapse

ARIA Roles

Closed this issue · 1 comments

Have you thought about adding an option for ARIA roles?

For e.g. I have an accordion header with role="tab", it would be nice if the top level .ReactCollapse--collapse element had role="tabpanel".

There are also aria-expanded and aria-controls attributes which could be added.

nkbt commented

Collapse just passes all supplied props to the collapse element, so you should be able to add any props you want.