WebAIM - Web Accessibility In Mind

E-mail List Archives

Temporary error alerts


From: Isabel Holdsworth
Date: Sep 28, 2018 9:51AM

Hi all,

does anyone have a robust template for an ARIA error alert that
disappears after a few seconds but might be required again later?

It used to be that hiding the error container with display="none" when
not needed and making it visible again when required didn't work with
all screenreaders. Is this still the case?

And is aria-live="assertive" still preferable to role="alert"?

We have a few alert scenarios like this dotted about the product (some
more accessible than others), and I think it's time to rationalise
them into a single, accessible component. There are two new alerts
being created at the moment, and I want to make sure we get it right.

Thanks as always for your thoughts and suggestions.

Cheers, Isabel