Grid: resize widget and snap resize-placeholder#78389
Conversation
|
|
||
| .is-resizing { | ||
| overflow: visible; | ||
| z-index: 1; |
There was a problem hiding this comment.
Do we have a CSS token to define this elevation value?
There was a problem hiding this comment.
Good Q; managing Z-indices is actually changing in Gutenberg and ui components. I'll merge with fixed numbers here and follow up with looking into how to better manage z-indices in the Grid package in a UI components compatible/native way.
|
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. |
|
Size Change: 0 B Total Size: 7.97 MB ℹ️ View Unchanged
|
retrofox
left a comment
There was a problem hiding this comment.
This is a nice enhancement that mitigates some cases where the next-layer configuration becomes a mess. Not relocating the rest of the tiles according to the makes the UX less noisy.
The downside is that we are losing the on-the-fly preview of the layout for the user, but I think that's fine.
There is an edge case that we may need to take a look. However, the current behavior isn't ideal either. I'd say it's worse.
Trunk
Screen.Recording.2026-05-18.at.9.20.05.AM.mov
This PR
Screen.Recording.2026-05-18.at.9.20.36.AM.mov
Also, as mentioned in another channel, I do prefer the dashed style for the tile overview.
cc @jameskoster
jameskoster
left a comment
There was a problem hiding this comment.
Another benefit is that you get a preview of how the widget contents will adapt as you resize rather than having to release every time.
I find a dashed outline too noisy/distracting in this context, but happy to unpack further in a dedicated issue. |
|
Flaky tests detected in 41c9e87. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26021205965
|
Probably, we can hide the whole widget chrome when dragging/resizing. |
Good observation. We might be able to improve the clarity of those sudden moves by adding slight animations. |

What?
Follow-up to #78281 (comment)
Visualise resizing by resizing the actual widget, and the resize-placeholder behind the widget indicates the next snap location.
Why?
A different way of visualising the resizing can help it feel less "jumpy".
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before
Screen.Recording.2026-05-18.at.11.02.47.mov
After
Screen.Recording.2026-05-18.at.11.03.40.mov
Use of AI Tools