[wp-trac] [WordPress Trac] #46371: Make sure in-page anchors are not hidden behind top bars
WordPress Trac
noreply at wordpress.org
Mon Jun 1 01:29:23 UTC 2020
#46371: Make sure in-page anchors are not hidden behind top bars
-------------------------------------------------+-------------------------
Reporter: afercia | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: has-screenshots good-first-bug has- | Focuses: ui,
patch 2nd-opinion | accessibility
-------------------------------------------------+-------------------------
Comment (by dufresnesteven):
>The main concern is that targeted elements will have an altered top
margin and padding.
What about using something like:
{{{
....:target:before {
content: '';
display block;
height: 32px; // Height of the header
}
}}}
It won't collide with element styles.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46371#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list