-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(cdk/a11y): live announcer not working with aria-modal element #25978
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(cdk/a11y): live announcer not working with aria-modal element #25978
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.
LGTM. Makes sense. Could potentially leave a comment, but I think the PR is also sufficient.
When an `aria-modal="true"` element is present, some browsers exclude all the content outside of them from the a11y tree which breaks the `LiveAnnouncer`. These changes add some logic to set an `aria-owns` on the modals so that the announcement is made. Fixes angular#22733.
ad07ea2
to
a615ae5
Compare
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, nice fix
…5978) When an `aria-modal="true"` element is present, some browsers exclude all the content outside of them from the a11y tree which breaks the `LiveAnnouncer`. These changes add some logic to set an `aria-owns` on the modals so that the announcement is made. Fixes #22733. (cherry picked from commit a1357a4)
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. |
When an
aria-modal="true"
element is present, some browsers exclude all the content outside of them from the a11y tree which breaks theLiveAnnouncer
.These changes add some logic to set an
aria-owns
on the modals so that the announcement is made.Fixes #22733.