Skip to content

Conversation

@cdeutsch
Copy link
Contributor

@cdeutsch cdeutsch commented Jun 7, 2018

This will remove the implied listitem role of the <li />.

https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html

Related to this original issue:
ant-design/ant-design#10095

Sorry, I'm just learning all about proper accessibility.

'aria-selected': props.isSelected,
};
} else if (props.role === null) {
} else if (props.role === null || props.role === 'none') {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left the null option in here for backward compatibility, but I'm also ok with removing it.

@coveralls
Copy link

coveralls commented Jun 7, 2018

Coverage Status

Coverage remained the same at 99.676% when pulling 4551ede on cdeutsch:menuitem-role-none into 0c80d9b on react-component:master.

Ran into a case where there is a readonly list displayed by a dropdown and the `<li />` role should be "reset" to `listitem`.
@picodoth picodoth merged commit df2bc2b into react-component:master Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants