x/pkgsite: create focus indicators to replace browser defaults #42698
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
pkgsite/frontend
Issues related to pkgsite HTML/CSS/JavaScript and frontend development
pkgsite
UX
Issues that involve UXD/UXR input
Milestone
The default style and behavior of focus indicators is set by browsers to make websites more accessible to keyboard only users and those with reduced vision. Their styles vary across browsers and sometimes clash with pkgsite's layout (#40759) and design (#42583). Focus visibility is a WCAG requirement so we can remove the default outlines but we'll need replacement indicators.
When replaced by a box shadow
:focus {outline: transparent; }
should be used in place of:focus {outline: none; }
because box shadows will not appear on some high contrast screens and transparent focus will./cc @Joanne881107 @fflewddur for product / UX input
The text was updated successfully, but these errors were encountered: