Skip to content

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

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

Merged

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Dec 13, 2018

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.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Dec 13, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 13, 2018
@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Dec 13, 2018
@crisbeto crisbeto added the Accessibility This issue is related to accessibility (a11y) label Jan 16, 2019
@mmalerba mmalerba added the aaa label Apr 25, 2019
@mmalerba mmalerba removed the aaa label Apr 25, 2019
@andrewseguin andrewseguin 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 crisbeto force-pushed the snack-bar-multi-announcement-resubmit branch from 54e884d to bea6537 Compare July 22, 2019 21:15
@jelbourn jelbourn 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 crisbeto force-pushed the snack-bar-multi-announcement-resubmit branch from bea6537 to 4660c93 Compare June 11, 2020 20:12
@andrewseguin andrewseguin merged commit 1bbfcf4 into angular:master Jul 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

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-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: patch This 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