Created on 15 June 2021, over 3 years ago
Updated 18 July 2023, over 1 year ago

Problem/Motivation

Hi, do you plan to add the option to have a global offset for anchors? Many sites have floating navigation bars that cover the anchors.

I think this will be an easy and useful addition.

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Ok4p1 Glasgow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States amanire

    I've just been experimenting with scroll-margin-top with this module and, unfortunately, it doesn't seem to work as expected when opening to an anchor ID inside a new page. It works fine when that page is already loaded and the anchor link is merely scrolling. I guess that this has to do with the the fact that the IDs are injected into the page with JavaScript after the DOM has already loaded. I would love to be proven wrong, but unfortunately, I think I'll have to find a way to add the IDs server-side to account for this user experience.

Production build 0.71.5 2024