WebAIM - Web Accessibility In Mind

E-mail List Archives

Sending focus in a radio button group on error - visible focus indicator.

for

From: Laurence Lewis
Date: Mar 19, 2022 3:16PM


A decision was made in our Workplace in regard to error management for a
radio button group. If the group has an error, focus is moved to the
<legend> and the error message is located inside the legend element
Example: Radio button group - error message location
<https://codepen.io/Deafinitive/pen/RwjRReZ/30b2263b00edadb55840bfee19d76f9b>
.


When focus is moved to the legend element, is a visible focus indicator
needed, and why? If there is no visible focus indicator is this a failure
for 2.4.7 Focus Visible Level AA?


Regards

Laurence Lewis