Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContextualMenu: Remove the list inside the menu and move aria labeling to the correct element #3838

Merged

Conversation

jspurlin
Copy link
Contributor

Pull request checklist

  • Include a change request file using $ npm run change

Description of changes

The child of the menu was incorrectly showing up in the UIA tree as a list. Upon investigating, the list items of the list had already been changed to role=presentation, but the ul list element had not yet been updated.

This change marks role=presentation on the list (ul) element and moves the aria-label/labelledby to the correct role=menu element

Focus areas to test

Verified that the menu is no longer reporting as a list and the labelling is hooked up to the correct element

@jspurlin jspurlin requested a review from christiango January 30, 2018 18:13
@jspurlin jspurlin requested a review from joschect as a code owner January 30, 2018 18:13
@jspurlin jspurlin merged commit b6a301e into microsoft:master Jan 30, 2018
chrismohr pushed a commit to chrismohr/office-ui-fabric-react that referenced this pull request Apr 17, 2018
…g to the correct element (microsoft#3838)

* Contextual Menus should not contain a list and the aria-label/labelledby should be on the menu

* rush change
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants