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

Suggestion: add tabindex to targets #85

Closed
thierryk opened this issue Mar 10, 2021 · 0 comments
Closed

Suggestion: add tabindex to targets #85

thierryk opened this issue Mar 10, 2021 · 0 comments

Comments

@thierryk
Copy link
Contributor

thierryk commented Mar 10, 2021

Adding tabindex="-1" to the target of the anchors will allow default UA styling (i.e. outline).
It can also be used in lieu of :target for styling, but more importantly it should make the UA focus on the target when the anchors are activated or when the page loads with that hash (there is a default styling for :focus but there is none for :target).

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