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

Header links’ whitespace cause accidental activation #896

Closed
dieulot opened this issue Apr 5, 2019 · 0 comments · Fixed by #948
Closed

Header links’ whitespace cause accidental activation #896

dieulot opened this issue Apr 5, 2019 · 0 comments · Fixed by #948
Labels
A-Style Area: Style (CSS, etc.)

Comments

@dieulot
Copy link

dieulot commented Apr 5, 2019

When you click to the right of a header it’s still considered part of the link and it scrolls you to that header.

There’s little value to having an overflowing link like that, most of those clicks are likely accidental clicks. It personally happens to me a lot, both on desktop and on mobile. It’s a constant source of annoyance.

The solution is to put the <a> element inside the <h2>/<h3> element instead of the opposite.

@ehuss ehuss added the A-Style Area: Style (CSS, etc.) label May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Style Area: Style (CSS, etc.)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants