You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Links (and buttons, etc.) need to have :focus styling for accessibility (navigating the site via Tab/Shift Tab; keyboard navigation). However, clicking on a link with the mouse activates the :focus styling, which looks strange in the menu in normal use.
It is surprisingly painful to set things up such that you retain keyboard-based focus styling for accessibility while getting rid of the odd-looking mouseclick focus styling, particularly if you want to do things with only CSS.
Links (and buttons, etc.) need to have :focus styling for accessibility (navigating the site via Tab/Shift Tab; keyboard navigation). However, clicking on a link with the mouse activates the :focus styling, which looks strange in the menu in normal use.
It is surprisingly painful to set things up such that you retain keyboard-based focus styling for accessibility while getting rid of the odd-looking mouseclick focus styling, particularly if you want to do things with only CSS.
See:
Third link especially has good implementation ideas.
The text was updated successfully, but these errors were encountered: