-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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): announcing same message twice to screen readers #13298
fix(snack-bar): announcing same message twice to screen readers #13298
Conversation
Shouldn't we always use the |
@jelbourn if we were to remove the |
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.
Right, I remember now. In that case LGTM
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.
ecca4ac
to
9b34639
Compare
…rs" (#14494) * Revert "build: update nodejs bazel rules (#14466)" This reverts commit a3fef46. * Revert "docs(form-field): native select reset values not working in examples (#14236)" This reverts commit 97f52c0. * Revert "fix(menu): allow text wrapping in menu items (#11430)" This reverts commit 3661abe. * Revert "fix(dialog,bottom-sheet): invert backdrop color on dark themes (#13065)" This reverts commit fe96f38. * Revert "build: replace deprecated tslint rule with compiler option (#13186)" This reverts commit 5dfa45f. * Revert "fix(snack-bar): announcing same message twice to screen readers (#13298)" This reverts commit 3fb4b23.
…correctly if the floating label is disabled" (#14505) * Revert "Revert "fix(snack-bar): announcing same message twice to screen readers" (#14494)" This reverts commit e9466a4. * Revert "Revert "fix(dialog,bottom-sheet): invert backdrop color on dark themes" (#14492)" This reverts commit 3eb7e9c. * Revert "Revert "fix(menu): allow text wrapping in menu items" (#14493)" This reverts commit a3da8d2. * Revert "build: update nodejs bazel rules (#14466)" This reverts commit a3fef46. * Revert "docs(form-field): native select reset values not working in examples (#14236)" This reverts commit 97f52c0. * Revert "fix(menu): allow text wrapping in menu items (#11430)" This reverts commit 3661abe. * Revert "fix(dialog,bottom-sheet): invert backdrop color on dark themes (#13065)" This reverts commit fe96f38. * Revert "build: replace deprecated tslint rule with compiler option (#13186)" This reverts commit 5dfa45f. * Revert "fix(snack-bar): announcing same message twice to screen readers (#13298)" This reverts commit 3fb4b23. * Revert "feat(drag-drop): allow entire group of drop lists to be disabled (#14179)" This reverts commit 94e76de. * Revert "fix(drag-drop): prevent text selection while dragging on Safari (#14405)" This reverts commit 220e388. * Revert "fix(autocomplete): auto-highlighted first option not display correctly if the floating label is disabled (#14414)" This reverts commit 53d2b58.
…lar#13298) 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.
…rs" (angular#14494) * Revert "build: update nodejs bazel rules (angular#14466)" This reverts commit a3fef46. * Revert "docs(form-field): native select reset values not working in examples (angular#14236)" This reverts commit 97f52c0. * Revert "fix(menu): allow text wrapping in menu items (angular#11430)" This reverts commit 3661abe. * Revert "fix(dialog,bottom-sheet): invert backdrop color on dark themes (angular#13065)" This reverts commit fe96f38. * Revert "build: replace deprecated tslint rule with compiler option (angular#13186)" This reverts commit 5dfa45f. * Revert "fix(snack-bar): announcing same message twice to screen readers (angular#13298)" This reverts commit 3fb4b23.
…correctly if the floating label is disabled" (angular#14505) * Revert "Revert "fix(snack-bar): announcing same message twice to screen readers" (angular#14494)" This reverts commit e9466a4. * Revert "Revert "fix(dialog,bottom-sheet): invert backdrop color on dark themes" (angular#14492)" This reverts commit 3eb7e9c. * Revert "Revert "fix(menu): allow text wrapping in menu items" (angular#14493)" This reverts commit a3da8d2. * Revert "build: update nodejs bazel rules (angular#14466)" This reverts commit a3fef46. * Revert "docs(form-field): native select reset values not working in examples (angular#14236)" This reverts commit 97f52c0. * Revert "fix(menu): allow text wrapping in menu items (angular#11430)" This reverts commit 3661abe. * Revert "fix(dialog,bottom-sheet): invert backdrop color on dark themes (angular#13065)" This reverts commit fe96f38. * Revert "build: replace deprecated tslint rule with compiler option (angular#13186)" This reverts commit 5dfa45f. * Revert "fix(snack-bar): announcing same message twice to screen readers (angular#13298)" This reverts commit 3fb4b23. * Revert "feat(drag-drop): allow entire group of drop lists to be disabled (angular#14179)" This reverts commit 94e76de. * Revert "fix(drag-drop): prevent text selection while dragging on Safari (angular#14405)" This reverts commit 220e388. * Revert "fix(autocomplete): auto-highlighted first option not display correctly if the floating label is disabled (angular#14414)" This reverts commit 53d2b58.
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. |
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 theLiveAnnouncer
to announce the same message, if the consumer hasn't set one. These changes clear theannouncementMessage
if it's the same as the main message.