Skip to content

bug(input): matInput overwrites aria-described by #19528

Closed
@josephperrott

Description

@josephperrott

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)GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/input

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions