Repository navigation
Stick the header to the top on small screens when logged in - #159
Open
MaggieCabrera wants to merge 1 commit into
Open
MaggieCabrera wants to merge 1 commit into
MaggieCabrera wants to merge 1 commit into
Conversation
At 600px and below, the admin bar scrolls away with the page, but the sticky header still left 46px for it, so content showed above the header. The admin bar offset now only applies above 600px, where the bar is fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Description
On screens 600px wide or less, logged-in users saw a 46px gap above the Sticky Header once they scrolled, with page content showing through it. At that width the admin bar scrolls away with the page, but the header still left room for it. The admin bar offset now only applies above 600px, where the bar is fixed, so on small screens the header sticks at the top, like core's sticky blocks do.
There's no issue for this. I found it while auditing
style.css.Screenshots
Testing Instructions
I checked the front end at 1280, 783, 782, 601, 600 and 375px, logged in and out, with the default colors and with Evening. Only 600px and below changes, and only when logged in. The Site Editor isn't affected, since its canvas has no admin bar, and the header still sticks there.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Finding the gap during a
style.cssaudit, writing the fix and checking it at each admin bar breakpoint.🤖 Generated with Claude Code