-
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
Customizer: Implement mobile responsive block toolbar #31589
Conversation
Size Change: -11.6 kB (-1%) Total Size: 1.3 MB
ℹ️ View Unchanged
|
The header needs a
The description container only overlays the toolbar when scrolling up, and I don't think that's too bad. It's easy enough to hide again by scrolling down, and users are familiar with how it works already. |
Thanks for the hints @tellthemachines, that should be working now! |
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.
This is working very well now ✅
border-bottom: 1px solid $gray-200; | ||
|
||
// Ensure widget UI doesn't overlap when scrolling | ||
z-index: 8; |
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.
What's the reason for 8 here? 2 seems to work as well. Might be worth adding something to the comment about what we're trying to overlay.
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.
I've move this to the z-indexes file and added a better comment 👍
Also split the topbar and toolbar indices. I figure it's best to make them as high as possible as nothing else should overlap them other than the odd element (popovers, tooltips) that already has a much higher z-index.
Nice! The only thing I spotted is that I think we should hide the fixed toolbar bottom border when everything is deselected, so that there’s no visible bar area there unless a block is selected. Here's how it works in the post editor: fixed-toolbar-post-editor.movThanks @talldan! |
For now I've removed the sticky topbar behavior to solve the issue I had above. I think it's more important to get this in before the WordPress 5.8 feature freeze. |
Description
Follow up to #31134
Progresses #30912Closes #30720
Styles the fixed (mobile responsive) toolbar that #31134 introduced to look like the design in #30720 (comment).
I've also styled the top bar a bit and set it to
position: sticky
(#30912), but for some reason it doesn't stick while the toolbar does. Not sure if any CSS pros have any ideas how to solve that? There's still a separate issue open for it, so it doesn't have to be solved in this PR, but it might be nice.The stickyness of the block toolbar itself isn't perfect as the customizer has it's own JavaScript-y scrolling thing happening with the sidebar description container above it.
How has this been tested?
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist:
*.native.js
files for terms that need renaming or removal).