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

fix(mdc-chips): Set aria-required on input instead of grid #18049

Merged
merged 1 commit into from
Dec 29, 2019

Conversation

vanessanschmitt
Copy link
Collaborator

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.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 26, 2019
@vanessanschmitt vanessanschmitt force-pushed the aria-required branch 2 times, most recently from a59e706 to d05d64d Compare December 26, 2019 23:07
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.
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crisbeto crisbeto added Accessibility This issue is related to accessibility (a11y) P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Dec 27, 2019
@mmalerba mmalerba merged commit 22d7f77 into angular:master Dec 29, 2019
crisbeto added a commit to crisbeto/material2 that referenced this pull request Jan 3, 2020
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.
@Splaktar
Copy link
Member

In the future, please use fix(material-experimental/mdc-chips) for your commit message as mentioned in the updated commit message guidelines.

jelbourn pushed a commit that referenced this pull request Jan 22, 2020
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.
jelbourn pushed a commit that referenced this pull request Jan 22, 2020
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.

(cherry picked from commit 8d57d32)
yifange pushed a commit to yifange/components that referenced this pull request Jan 30, 2020
…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.
yifange pushed a commit to yifange/components that referenced this pull request Jan 30, 2020
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.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants