-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preferences modal: fix the position of sticky heading when blocks are hidden #55456
Conversation
Size Change: 0 B Total Size: 1.66 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works for me, thanks!
Side note (not to address here); should that "1 block is hidden." message be inside a Notice
component? 🤔
Thanks for the review, @jameskoster!
Does this mean that you are expecting something like the following? |
Probably an informational notice (blue) rather than a warning (yellow), but yes something like that. It's definitely not something to prioritise, or to add to this PR. Just a general observation of something we might address later in a separate PR. |
Understood! Now, I would like to merge this PR and consider responding as a follow-up 👍 |
Follow-up on #52248
What?
This PR fixes the misalignment of the fixed header when the blocks are hidden in the preferences modal of the Post Editor.
Why?
We should have also considered the message displayed when the block is hidden.
How?
Similar to #52248, I shifted the message and header when the block is hidden by 4px. Also, I'm using variables rather than hard-coded values.
Testing Instructions
Screenshots or screencast
725335ed190c9fa31a26d49723bc8d2a.mp4