-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(snack-bar): prevent content from overriding configured aria-live message #12294
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(snack-bar): prevent content from overriding configured aria-live message #12294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change the commit message to something like
fix(snack-bar): prevent content from overriding configured aria-live message
@@ -26,7 +26,10 @@ export class MatSnackBarConfig<D = any> { | |||
/** The politeness level for the MatAriaLiveAnnouncer announcement. */ | |||
politeness?: AriaLivePoliteness = 'assertive'; | |||
|
|||
/** Message to be announced by the MatAriaLiveAnnouncer */ | |||
/** | |||
* Message to be announced by the MatAriaLiveAnnouncer. When opening a snackbar without a custom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you correct this comment while you're here to just say LiveAnnouncer
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…message * Currently the `announcementMessage` config option is always being overwritten when opening a simple snackbar.
8d3140e
to
9ee73c8
Compare
@jelbourn Done. Can you have another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…message (#12294) * Currently the `announcementMessage` config option is always being overwritten when opening a simple snackbar.
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. |
announcementMessage
config option is always being overwritten when opening a simple snackbar.