-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
A11y: toast notifications in extension popup not announced by assistive technologies #2509
Comments
And to close the loop, scttcper/ngx-toastr#934 has just been merged |
Heads-up @eliykat (and apologies if I keep dragging you into these. let me know if I should just sit patiently instead, don't want to pester you) |
Awesome upstream-fix @patrickhlauke. Unfortunately we'll need to wait to pull those changes in, as we'd first need to bump to Shouldn't be to far away, from what I've heard. |
@patrickhlauke The bump to Angular 14 and with that the bump of ngx-toastr to 15.0 was done with #2948. This will be available with the |
confirming that notifications are now announced correctly by screen readers bitwarden-browser-toast-close.mp4arguably, there's a bit of tweaking that could still be done, as they all announced with "Close" at the start (due to the "X" close control). but i'll file this as a separate issue/PR another time. |
Steps To Reproduce
Expected Result
Assistive technologies (e.g. screen readers) should announce the appearance of the toast.
Actual Result
Assistive technologies don't announce the toast.
Screenshots or Videos
Demonstration video using Chrome/NVDA. Note that no announcement is made when the toast appears.
bitwarden-toasts-screenreader.mp4
Additional Context
The problem itself is upstream in the ngx-toastr component. I filed an issue scttcper/ngx-toastr#933 and a fix PR scttcper/ngx-toastr#934
However, in the meantime, a workaround here (depending on how long it takes for the upstream component to be fixed) would be to explicitly set up a custom container for your toasts, making sure that that container element has
aria-live="polite"
.Operating System
Windows
Operating System Version
10
Web Browser
Chrome
Browser Version
100.0.4896.127
Build Version
1.57.0
The text was updated successfully, but these errors were encountered: