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

x/website: anchor links don't show up if one hovers directly on a heading #70827

Open
mvdan opened this issue Dec 13, 2024 · 4 comments
Open
Labels
help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website

Comments

@mvdan
Copy link
Member

mvdan commented Dec 13, 2024

Splitting from #68596 (comment), which got ignored as it was a closed issue.

When I hover over "Doc Links", nothing happens - which is why I didn't even realise this got fixed earlier today. I have to move my cursor to the right of the heading - where the "reverse P" anchor symbol would be - for it to appear, as if I had to know ahead of time it would be there.

Can we make the anchor link show up whenever I hover over any of the heading area too? I think this is how anchor link hovers usually work on other websites, or at least that's how I intuitively think they work.

cc @hyangah @matttproud @cespare

@gopherbot gopherbot added this to the Unreleased milestone Dec 13, 2024
@cagedmantis cagedmantis added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 13, 2024
@cagedmantis
Copy link
Contributor

cc @golang/tools-team

@mvdan
Copy link
Member Author

mvdan commented Dec 13, 2024

The way anchor links work on pkgsite is also how I would expect - hovering over the heading text in https://pkg.go.dev/io#pkg-variables shows the anchor symbol.

@findleyr
Copy link
Member

Thanks. This has always bothered me as well!

We would welcome a contribution to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website
Projects
None yet
Development

No branches or pull requests

5 participants