Skip to content

bug(snackbar): Documentation says aria-live="polite" but real default is "assertive" #27562

@calebegg

Description

@calebegg

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Documentation says aria-live="polite" but real default is "assertive"

MatSnackBar announces messages via an aria-live region. While announcements use the polite setting by default, you can customize this by setting the politeness property of MatSnackBarConfig.

but the real default with mdc components seems to be "assertive". Documentation should be updated

image

Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

Expected Behavior

N/A

Actual Behavior

N/A

Environment

  • Angular: Whatever Google uses
  • CDK/Material:
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Chrome OS

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/snack-bar

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions