WebAIM - Web Accessibility In Mind

E-mail List Archives

Modal focus management and use of color for links

for

From: megha patangi
Date: May 20, 2024 3:16AM


Hello Web Aim team,

I have two queries as follows:
1. There is a modal which has its first focusable element as close button
to top right of modal, and then there is a form with multiple fields in
this modal. No paragraph or alert is contained.
Thus, on launch of modal is it mandatory to bring focus on close button, or
it is even acceptable if we bring focus to first form field instead?

2. If there is alink which is either looking like as link because of its
color or does not look like link at all because its colour and style is
similar to other adjacent text.
Now, when we hover on these links, there appears an underline, stating that
this is link. On keyboard TAB focus, we do not get similar underline, but
definitely link receives explicit visible focus indicator with appropriate
contrast.
Thus, will this pass, or underline should appear on focus as well, just as
it appeared on hover, along with focus indicator?

Regards,
Megha