-
Notifications
You must be signed in to change notification settings - Fork 652
Open
Labels
bugSomething isn't workingSomething isn't workingcomponent: ActionListreactwaiting for author responseWaiting for the issue author to provide input before actingWaiting for the issue author to provide input before acting
Description
Description
According to the role guidelines documented here, if we use the role of menu, the child link items have the role of ListItem and are unable to be changed causing accessibility violations.
The role prop is passed on to <a> instead of the parent LinkItem.
It would be nice to be able to expose a new prop to change that value.
Steps to reproduce
- Create a ActionList with
role="menu" - Fill it with LinkItem
- Attempt to override the role of LinkItem to be
menuitem - Role is not overwritten and causes a11y violations.
Version
v37.27.0
Browser
Chrome
cc: @ctmayn
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcomponent: ActionListreactwaiting for author responseWaiting for the issue author to provide input before actingWaiting for the issue author to provide input before acting