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(material/snack-bar): creates default assertive aria-live if not specified #29815

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/material/snack-bar/snack-bar-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ export class MatSnackBarContainer extends BasePortalOutlet implements OnDestroy
/** The state of the snack bar animations. */
_animationState = 'void';

/** aria-live value for the live region. */
_live: AriaLivePoliteness;
/**
* aria-live value for the live region. Set as 'assertive' by default if not specificed by
* developer.
*/
_live?: AriaLivePoliteness | 'assertive';

/**
* Element that will have the `mdc-snackbar__label` class applied if the attached component
Expand Down
Loading