Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants