-
Notifications
You must be signed in to change notification settings - Fork 358
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
feat(accessibility): Move aria-live=polite
to overlay container
#934
feat(accessibility): Move aria-live=polite
to overlay container
#934
Conversation
also updates the README.md to let authors know they'll need this attribute if they're doing custom overlay containers
dialogs/alertdialogs are intended to receive focus when they're shown. toasts, by their very nature, are not meant to steal focus but happen in parallel/as an aside
Codecov Report
@@ Coverage Diff @@
## master #934 +/- ##
==========================================
+ Coverage 55.29% 55.96% +0.67%
==========================================
Files 19 19
Lines 510 511 +1
Branches 88 88
==========================================
+ Hits 282 286 +4
Misses 216 216
+ Partials 12 9 -3
Continue to review full report at Codecov.
|
Video recording of https://ngx-toastr-dp73gf4hr-scoop1.vercel.app/ (using Chrome/NVDA) showing that after this change, all toasts are announced correctly and consistently (compare to the video in #933) ngx-toastr-live-region-issue-fixed.mp4 |
aria-live="polite"
to the overlay container, change role="alertdialog"
to role="alert"
aria-live="polite"
to the overlay container, change role="alertdialog"
to role="alert"
aria-live="polite"
to the overlay container, change role="alertdialog"
to role="alert"
aria-live=polite
to overlay container
🎉 This PR is included in version 14.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks @scttcper :) |
Closes #933, closes #444, closes #833
(note that I'm not too hot on angular per se, so this may need tweaking/correcting. In particular the change made to the README.md)