-
Notifications
You must be signed in to change notification settings - Fork 32
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: in-page link targets are covered by header #219
Comments
We do have something like that already:
It works for me when I'm logged out, but not when logged in. Both have admin bars. It may be that the code assumes that logged-in sites don't have the admin bar, which recently changed on some sites. |
That's not the same thing, since it's on |
It's in a media query because the header isn't wporg-mu-plugins/mu-plugins/blocks/global-header-footer/postcss/header/header.pcss Lines 27 to 28 in 433d57f
I haven't looked into targeting |
Disabling the |
I think the issue here is limited to Make sites, and there's some kind of scrollTo JS in p2 that overrides the For example, this anchor on developer.w.org works, but this one on another make site doesn't. |
Oh interesting, that's correct — in-page anchors work, so on Developer, if you use the side table of contents to navigate to section, it works as expected. Same with the list of links in the make dev note. But direct links to page content don't work. |
This appears to be fixed now that the global header is no longer sticky. I've tested all the links in the comments on this issue. Let me know if this is not the case. |
Now that the new header had fixed position, links to targets are hidden under it.
On a Make site, click on a sidebar link to a comment, for example, Matt's comment.
Note that you have to scroll to find the start of the comment.
You can add CSS for this (use the height of the header)
[id] { scroll-margin-top: 2em; }
The text was updated successfully, but these errors were encountered: