Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mouseclick link focus in menu #1

Open
StevenTammen opened this issue Nov 22, 2020 · 0 comments
Open

Remove mouseclick link focus in menu #1

StevenTammen opened this issue Nov 22, 2020 · 0 comments

Comments

@StevenTammen
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant