Skip to content

fix(snack-bar): announcing same message twice to screen readers - #14504

Merged
andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:snack-bar-multi-announcement-resubmit
Jul 14, 2020
Merged

fix(snack-bar): announcing same message twice to screen readers#14504
andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:snack-bar-multi-announcement-resubmit

Conversation

@crisbeto

@crisbetocrisbeto commented Dec 13, 2018

Copy link
Copy Markdown
Member

Currently we have role="alert" on the snack bar which will cause screen readers to announce the message automatically. On top of it, we also use the LiveAnnouncer to announce the same message, if the consumer hasn't set one. These changes clear the announcementMessage if it's the same as the main message.

Note: this is a resubmit of #13298.

Fixes#14825.

@crisbetocrisbeto added the target: patch This PR is targeted for the next patch release label Dec 13, 2018
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 13, 2018
@jelbournjelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Dec 13, 2018
@crisbetocrisbeto added the Accessibility This issue is related to accessibility (a11y) label Jan 16, 2019
@mmalerbammalerba removed the aaa label Apr 25, 2019
@andrewseguinandrewseguin added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label May 30, 2019
@crisbeto
crisbetoforce-pushed the snack-bar-multi-announcement-resubmit branch from 54e884d to bea6537CompareJuly 22, 2019 21:15
@jelbournjelbourn added P2 The issue is important to a large percentage of users, with a workaround and removed P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Jan 6, 2020
Currently we have `role="alert"` on the snack bar which will cause screen readers to announce the message automatically. On top of it, we also use the `LiveAnnouncer` to announce the same message, if the consumer hasn't set one. These changes clear the `announcementMessage` if it's the same as the main message.
@crisbeto
crisbetoforce-pushed the snack-bar-multi-announcement-resubmit branch from bea6537 to 4660c93CompareJune 11, 2020 20:12
@andrewseguin
andrewseguin merged commit 1bbfcf4 into angular:masterJul 14, 2020
andrewseguin pushed a commit that referenced this pull request Jul 14, 2020
Currently we have `role="alert"` on the snack bar which will cause screen readers to announce the message automatically. On top of it, we also use the `LiveAnnouncer` to announce the same message, if the consumer hasn't set one. These changes clear the `announcementMessage` if it's the same as the main message.
ngwattcos pushed a commit to ngwattcos/components that referenced this pull request Jul 20, 2020
…lar#14504)
Currently we have `role="alert"` on the snack bar which will cause screen readers to announce the message automatically. On top of it, we also use the `LiveAnnouncer` to announce the same message, if the consumer hasn't set one. These changes clear the `announcementMessage` if it's the same as the main message.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-botangular-automatic-lock-botBot locked and limited conversation to collaborators Aug 14, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

AccessibilityThis issue is related to accessibility (a11y)action: mergeThe PR is ready for merge by the caretakercla: yesPR author has agreed to Google's Contributor License AgreementP2The issue is important to a large percentage of users, with a workaroundtarget: patchThis PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[a11y [MatSnackBar] Screen reader announces message twice.

6 participants

@crisbeto@jelbourn@googlebot@mmalerba@andrewseguin@vivian-hu-zz