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