-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Labels
Description
Describe the bug
When running accessibility audits using axe pro and enabling tab index, it was noted that there is no role on the Trigger element.
This lead to us realising that there is no way of passing props to the trigger element. In our case, this would be for aria roles and labels.
To Reproduce
Try and pass properties to the trigger element
Expected behaviour
There should be some way of setting additional properties on the trigger element. As there is already a containerElementProps prop, it would be nice to have a triggerElementProps prop on the Collapsible. This would allow the passing of an object that would set props on the TriggerElement
I'm happy to raise a PR for this if you would like