-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)GThis is is related to a Google internal issueThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/input
Description
Copied from internal bug report:
According to https://material.angular.io/components/input/overview#accessibility:
Any mat-error and mat-hint are automatically added to the input's aria-describedby list,...
but it seems they are not added but replace the pre-existing aria-describedby, see here
We use the aria-describedby to announce keyboard shortcuts for sending the form, and that breaks if matInput overwrites this.
Would it be possible to store the previous aria-describedby attribute and maintain it whenever setting this? That seems more inline with the docs and allows e.g. our use case.
cc: @rehmsen
Metadata
Metadata
Assignees
Labels
AccessibilityThis issue is related to accessibility (a11y)This issue is related to accessibility (a11y)GThis is is related to a Google internal issueThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/input