Live regions in the messages section
The messages from text channels are output through SAPI, if one wish, but that's usually not what a screen reader user wants to do. It's more helpful using live regions instead, so the new messages arriving at the messages list are automatically output to the screen reader. This allows for more flexibility on wether you want to hear that message or not, and other cool stuff that screen readers can do.
I guess that the best approach would be to set the div tag like this::
<div role="log" aria-live="polite" aria-atomic="false">
The aria-atomic and aria-live are implied by the log role, but it's best to add redundancy just to make sure. Details in the URL below.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_log_role
Iniciar sesión para dejar un comentario.
Comentarios
0 comentarios