Skip to content

Anchor navigation scrolls target content under fixed header #1570

@radosvet93

Description

@radosvet93

Describe the bug

When navigating to a URL fragment (#hash), the page scroll position does not account for the sticky headers. This causes the target element to appear hidden behind the headers, making the navigation result unclear.

The header should be visible just below the header when navigating to it via the hash

Example: https://npmx.dev/package/nuxt#user-content-contribute

Image

I should be able to see the heading in this case Contribute

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Design

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions