Skip to content
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

Messages should be announced via aria-live #621

Closed
nickvergessen opened this issue Jul 20, 2022 · 1 comment
Closed

Messages should be announced via aria-live #621

nickvergessen opened this issue Jul 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@nickvergessen
Copy link
Contributor

Ref nextcloud/spreed#7105

New chat messages should be announced via aria-live="polite", including author and message content, see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions

Reading:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions

aria-live="assertive" should only be used for time-sensitive/critical notifications that absolutely require the user's immediate attention. Generally, a change to an assertive live region will interrupt any announcement a screen reader is currently making. As such, it can be extremely annoying and disruptive and should only be used sparingly.

My suggestion would be to either use aria-live="assertive" for all, or at least the elements with aria-live="polite"

As far as I can see toastify-js does not allow this. So either we need to deal with it upstream or have to look for another library

@nickvergessen nickvergessen added the bug Something isn't working label Jul 20, 2022
@nickvergessen
Copy link
Contributor Author

Moved to #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant