aria-practices icon indicating copy to clipboard operation
aria-practices copied to clipboard

"Back to Top" link focus indicator not discernible against dark background

Open SaraSoueidan opened this issue 2 years ago • 0 comments

The "Back to Top" link’s focus indicator becomes hard to discern when the link is positioned atop of the dark footer. The color contrast is too low and does not meet WCAG requirements.

Not focused: Screen Shot 2022-05-20 at 17 57 56

Focused: Screen Shot 2022-05-20 at 17 58 07

Contrast ratio: Screen Shot 2022-05-20 at 18 00 47

It looks fine when it receives focus with the white background behind it.

Screen Shot 2022-05-20 at 17 58 28

Then again, the link only receives keyboard focus after tabbing through the page’s links all the way down to the footer. As such, it will almost always be positioned above the footer when it does receive focus.

The only way I could tell where my focus was when I tabbed to it was via the URL shown in the status bar.

A possible way to avoid this is to use a "double outline" (one light outline, and one dark outline) when it receives focus, so that it stands out on both light and dark backgrounds.

WCAG success criteria:

SaraSoueidan avatar May 20 '22 15:05 SaraSoueidan