[wp-trac] [WordPress Trac] #53788: Improve anchor link scroll position when logged in
WordPress Trac
noreply at wordpress.org
Mon Jul 26 16:44:40 UTC 2021
#53788: Improve anchor link scroll position when logged in
-------------------------+-----------------------------
Reporter: mikachan | Owner: mikachan
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version: 5.8
Severity: normal | Keywords: has-patch
Focuses: css |
-------------------------+-----------------------------
When logged in and clicking on an anchor link, the admin bar displays over
the top of (and therefore hides) the heading or top of the content of the
scrolled-to element. Depending on the font size, line height etc, this may
hide an entire heading tag.
This seems to affect all themes and as it's caused by the height of the
admin bar, it felt appropriate to create a ticket in core.
This was originally highlighted in this issue:
https://github.com/Automattic/themes/issues/3145
This has been tested on Blockbase, empty theme, and Twenty Twenty.
Steps to reproduce:
- Create a post/page with an anchor link to an element that requires the
page to scroll the distance of the viewport height in order to bring it
into the viewport.
- View the post/page on the front end while still logged in
- Click the anchor link to make the page scroll to the element
- The top of the content will be hidden underneath the admin bar
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53788>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list