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

MDC Menu: Implement API to change selected item in selection group #4525

Closed
abhiomkar opened this issue Mar 20, 2019 · 2 comments
Closed

MDC Menu: Implement API to change selected item in selection group #4525

abhiomkar opened this issue Mar 20, 2019 · 2 comments

Comments

@abhiomkar
Copy link
Collaborator

abhiomkar commented Mar 20, 2019

Implement API to change selected item in selection group.

For example,

// API Signature
menu.setSelectedIndex(index: number, selectionGroupIndex = 0)

// Usage
menu.setSelectedIndex(3)

image

Plausible ARIA attributes for selectable menu items

  • role="menuitemradio" for each selectable menu item.
  • aria-checked="true" for selected menu item.
@moog16
Copy link
Contributor

moog16 commented Mar 21, 2019

We should also be updating the aria tags with regards to the checkbox.

@moog16
Copy link
Contributor

moog16 commented May 6, 2019

Closing for #4620

@moog16 moog16 closed this as completed May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants