Accessibility
- A set is a
gridnamed by its visible label througharia-labelledby, with arow, and agridcellfor each chip;aria-multiselectabletells whether several can be selected. - The set is one
Tabstop. The arrow keys move between chips, following the reading direction;HomeandEndgo to the first and last. - A chip with one action is its cell, which takes focus and carries
aria-selected;SpaceandEnteractivate it. A chip with two actions keeps two native buttons in its cell, and the arrows reach both. - On its own, a filter or input chip is
role="checkbox"witharia-checked; assist and suggestion chips are plain buttons. - A removed input chip's focus moves to the chip that took its place, or the previous one.
- Chips and remove buttons have 48dp touch targets. Keyboard focus draws a 3dp focus ring, 2dp outside the chip.