Skip to content

Clicking hashtag links scroll too far #5862

@alanmels

Description

@alanmels

Description of the bug

With the Administration Bar module disabled clicking on such links you can see at least the part of the relevant content:

Screenshot 2022-11-15 at 3 39 44 PM

However, Backdrop comes with Administration Bar module enabled and it remains enabled on most of the websites, so clicking the same link takes you too far and you are not able to see relevant content at all. You would have to scroll little bit up to see the right content:

Screenshot 2022-11-15 at 4 01 46 PM

Expected behavior

Ideally, you should be able to see not only the part of the relevant content, but all of it including the title like so:

Screenshot 2022-11-15 at 3 56 25 PM

I see from various publications like, for example, https://css-tricks.com/hash-tag-links-padding/ it's a common browser issue. However, Backdrop's Administration Bar module is making it even worse. I am not sure what's the ideal solution here, so suggestions are welcome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions