-
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
Fix fixed toolbar in customize widgets #51092
Conversation
Size Change: +145 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Flaky tests detected in 146373e641220f31df454eda02f2686ad30f8f8f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5176449870
|
a7a4b68
to
822b7c9
Compare
Testing this with @jeryj we found a bug:
This happens because in this PR i have to hide with Setting the 1st element in Also the button would also now show at all if Either way, I am a bit stuck on how to move here. |
I took this as a learning day for That said, this is really a hack for a very specific edge case, so maybe it's best to be handled through the block popover. We are already passing the My feeling is that we should do this within the block popover, but I just tried setting the Another unrelated issue I was looking into today is that |
I will try to simply not hide the collapse button and style the collapsed top toolbar to look OK. Edit: updated the description video with how it works now. This option avoids the bug discovered by @jeryj but leaves a dubious UX - I think it's a good compromise, util we can figure out a better way. |
This seems like a good enough compromise to me! |
@jeryj I've lowered the z-index of the fixed toolbar, the navigation mode popover should now look OK. |
146373e
to
6eb27ff
Compare
That is not the insterter toolbar, it is customizer chrome. I think it's OK to keep that on top. |
* override fixed block toolbar styles in the customize widgets editor * show the collapse button and style collapsed block toolbar * lower the z-index of the block toolbar in widgets customizer
What?
Fixes #51037.
Why?
Because in the customizer's widget editor the fixed top toolbar was inheriting the styles from the desktopn breakpoint - but in the customizer we have a small tall editor - yet the breakpoints don't fire in that panel.
How?
Overriding the styles to be like those on mobile breakpoints in the block toolbar fixed version.
Testing Instructions
Testing Instructions for Keyboard
N/A
Screenshots or screencast
widgets-top-toolbar-collapse.mp4