Closed
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When opening a snackbar from within a dialog (with VoiceOver enabled), the snackbar contents are not vocalized. If the snackbar remains on the screen, the contents are vocalized as soon as the dialog is closed.
This is a very similar issue to: #22733
I suspect a similar fix could be applied (adding aria-owns to the dialog for any active snackbars).
Note: I am able to work around this issue by setting the dialog's aria-modal attribute to false.
Reproduction
Steps to reproduce:
- Open a dialog
- While the dialog is open, trigger a snackbar with VoiceOver enabled.
Repro: https://stackblitz.com/edit/components-issue-kqprn4?file=src%2Fapp%2Fdialog-content-example.ts
Expected Behavior
The snackbar contents should be vocalized
Actual Behavior
The snackbar contents are not vocalized until the dialog is closed (if the snackbar is still visible).
Environment
- Angular: 15.2.0
- CDK/Material: 15.2.0
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
- Screen reader: VoiceOver