-
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
bug(mat-chip-grid): mat-error instances are not exposed to screen reader users #24542
Labels
area: material/chips
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
ByzantineFailure
added
the
needs triage
This issue needs to be triaged by the team
label
Mar 7, 2022
This might be solvable by updating |
ByzantineFailure
added a commit
to ByzantineFailure/components
that referenced
this issue
Mar 8, 2022
…hipInput Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Fixes angular#24542
crisbeto
added
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
has pr
area: material/chips
and removed
needs triage
This issue needs to be triaged by the team
labels
Mar 15, 2022
ByzantineFailure
added a commit
to ByzantineFailure/components
that referenced
this issue
Mar 15, 2022
…hipInput Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Fixes angular#24542
ByzantineFailure
added a commit
to ByzantineFailure/components
that referenced
this issue
Mar 15, 2022
…hipInput Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Removes the aria-describedby attribute on the grid itself since it never receives focus. Fixes angular#24542
ByzantineFailure
added a commit
to ByzantineFailure/components
that referenced
this issue
Mar 21, 2022
…hipInput Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Removes the aria-describedby attribute on the grid itself since it never receives focus. Fixes angular#24542
ByzantineFailure
added a commit
to ByzantineFailure/components
that referenced
this issue
Mar 21, 2022
…hipInput Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Removes the aria-describedby attribute on the grid itself since it never receives focus. Fixes angular#24542
ByzantineFailure
added a commit
to ByzantineFailure/components
that referenced
this issue
Mar 25, 2022
…hipInput Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Removes the aria-describedby attribute on the grid itself since it never receives focus. Fixes angular#24542
ByzantineFailure
added a commit
to ByzantineFailure/components
that referenced
this issue
Mar 25, 2022
…hipInput Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Removes the aria-describedby attribute on the grid itself since it never receives focus. Fixes angular#24542
forsti0506
pushed a commit
to forsti0506/components
that referenced
this issue
Apr 3, 2022
…hipInput (angular#24551) Updates mat-chip-grid to associate any ids set for aria-describedby to the matChipInput instance within the grid, if one exists. Removes the aria-describedby attribute on the grid itself since it never receives focus. Fixes angular#24542
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: material/chips
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
When a
mat-chip-grid
has amat-error
associated with it SR users do not hear the error when they focus the grid or its associatedmatChipInput
.Reproduction
Steps to reproduce:
Expected Behavior
The SR reads out the error message when the user focuses either the chip grid or the chip input.
Actual Behavior
The SR does not read out the error message. Additionally, it does not indicate that the field is invalid until the
matChipInput
is focused. This seems to be the result of the on-focus behavior of MatChipGrid combined with the way the form field is associating the error with its control.When a form field has an error associated with it, AM will generally try to add
aria-describedby=ERROR_ELEMENT_ID
. In this particular case, the control that the error is associated with is themat-chip-grid
element. However, when focus lands on a chip grid it focuses the first chip if any are available, or otherwise moves the focus to the input if one is present. Effectively, this means that the user cannot ever hear the error message be announced while focused on the control itself.Environment
The text was updated successfully, but these errors were encountered: