bug(MatChipGrid): Focus order is not logical #29359
Labels
Accessibility
This issue is related to accessibility (a11y)
area: material/chips
G
This is is related to a Google internal issue
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Multiple labels are added in a custom grid. The order in which focusable elements receive focus in the grid is not logical. The RIGHT and LEFT ARROW keys move right and left, but the DOWN and UP ARROW keys also move right and left. This is acceptable for users who can see the structure, but for screen reader users it interferes with understanding the grid structure.
Ensure that the order in which elements receive keyboard focus follows a meaningful and logical sequence. DOWN ARROW and UP ARROW should only move between logical rows of the filter grid, as in the ARIA APG pattern.
Reproduction
StackBlitz link: https://stackblitz.com/run?file=package.json
Steps to reproduce:
Expected Behavior
DOWN and UP ARROW keys should move the focus from
Lemon -> Lime -> Apple
Actual Behavior
DOWN and UP ARROW keys moves the focus from
Lemon -> Close icon (Lemon) -> Lime -> Close icon (Lime) -> Apple -> Close icon (Apple)
Environment
The text was updated successfully, but these errors were encountered: