WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: forms and multiple aria-live regions

for

From: glen walker
Date: May 25, 2018 11:06AM


Birkir, just to clarify, your example is good when you're hiding/unhiding
child elements but if the change is just to the text inside the element,
then having aria-live on the child is fine.

Glen


On Fri, May 25, 2018 at 9:17 AM, Birkir R. Gunnarsson <
<EMAIL REMOVED> > wrote:

> Make sure to place aria-live on the parent of the element that gets
> displayed, not on the eleent itself.
> bad:
> <div aria-live="polite" style="display: none;">There were errors</div>
> Good
> <div aria-live="polite">
> <div style="display: none;">there were errors</div>
> </div>
>