Repository navigation
Keep sticky headers below the admin bar up to 600px - #290
Merged
Merged
Conversation
WordPress keeps its admin bar pinned down to 601px and only lets it scroll away at 600px and below. The sticky header rules reset their offset at 782px instead, so between 601px and 782px the header slid under the 46px bar: the plain sticky header lost 46px, the floating pill lost 30px once scrolled. Measured against core's admin-bar.css. Moving both resets to 600px matches core. Nothing changes at 600px and below or above 782px. The Extendify plugin's own bars (the Simple Toolbar and the closed-agent bar) never scrolled away, which is why the header hid under them on phones too (company-product#2388). Those bars now scroll away at 600px like core's in a companion extendify-sdk change, so the theme only has to follow WordPress and needs no plugin-specific offset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Between 601px and 782px wide (a small tablet, or a narrow window), sticky headers slid under the WordPress admin bar for logged-in users once they scrolled. WordPress keeps that bar pinned down to 601px and only lets it scroll away at 600px and below, but the theme removed the header's offset from 782px down. This moves both resets to 600px so they match WordPress.