WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: forms and multiple aria-live regions

for

From: Mark Magennis
Date: May 25, 2018 6:51AM


Dan,

When using the live region for error messages when a field loses focus, make sure the warning text explicitly refers to the field it relates to. Otherwise, the user may think it applies to the field they have just tabbed into, since it will be read in conjunction with the screen reader announcing that field. E.g.

"name"
>TAB
"email", "you must fill in this field"

Where the error was actually referring to the name field.

So the warning should be "you must fill in the name field".

Mark

Mark Magennis
Skillsoft | mobile: +353 87 60 60 162
Accessibility Specialist