-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(mdc-chips): Set aria-required on input instead of grid #18049
Conversation
a59e706
to
d05d64d
Compare
The aria-required attribute is not allowed on elements with role=grid, which causes axe to report an error. If the grid is required, set aria-required on the matChipInputFor input element instead.
d05d64d
to
9b8e3bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sets an `aria-required` on the input that's associated with a chip list. Matches something similar we did for the MDC-based chips in angular#18049 since the MDC chip listbox setup is similar to our current chips setup.
In the future, please use |
Sets an `aria-required` on the input that's associated with a chip list. Matches something similar we did for the MDC-based chips in #18049 since the MDC chip listbox setup is similar to our current chips setup.
…8049) The aria-required attribute is not allowed on elements with role=grid, which causes axe to report an error. If the grid is required, set aria-required on the matChipInputFor input element instead.
Sets an `aria-required` on the input that's associated with a chip list. Matches something similar we did for the MDC-based chips in angular#18049 since the MDC chip listbox setup is similar to our current chips setup.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The aria-required attribute is not allowed on elements with role=grid, which causes axe
to report an error. If the grid is required, set aria-required on the matChipInputFor
input element instead.
Related to #17397
This commit also contains 2 unrelated minor fixes: 1) remove an unneeded aria-orientation attribute on a demo mat-chip-set that was erroneously copy-pasted from the mat-chip-listbox demo, and 2) change a word in one test name.