-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Grid Layout Improvements #57478
Comments
Quick sketch showing what a next iteration of grid might look like. Keeping in mind we still want to push layout forward in general including generic width/height options via #53455. Children fill width/height of column/row by default. I'm showing width/height controls just to illustrate they are different to span and can be included in the separate layout work. We can start with inspector controls and work our way towards on canvas manipulation, including start/end of grid items which can lead to overlapping blocks. |
Some free flowing thoughts.... I say this as the "Change Content Position" inside the Cover block can use a nice upgrade. Having one grid system used between the various blocks would be very helpful. In relation to grid. It would also be helpful to have an icon to turn on/off helper lines. Somewhat like InDesign/Photoshop one can turn on the grid lines to see how things line up. |
Thinking through what's needed here in light of #58539:
I played around with this a bit and it doesn’t seem possible to match the current behaviour of content and wide layouts with grid. In any case there’s no real gain in replacing the content sizing and alignment logic with a grid-based implementation. |
👋 I'm going to try and build a prototype of this stuff. |
@tellthemachines, @SaxonF and I are actively working on this. I updated the issue to be an overview issue and added a few tasks that we've discussed. #59052 added a new Grid interactivity experiment which you can enable in Gutenberg → Experiments. Currently you can visualise where the grid cells are when you select a Grid block and use a resize handle to set the span of a block within the Grid. I'm looking into drag and drop now. |
Quick update for anyone following along this tracking issue: with the outstanding interactivity issues now addressed, the grid visualiser and resizers have been stabilised for Gutenberg 18.4, which means folks will be able to try out dragging Grid child blocks to set column and row span, without having to activate the interactivity experiment in the plugin. There are still some pending visual enhancements to explore, but I believe it looks like the feature should now be in the overall shape that it’s intended to be for WP 6.6. |
Update on grid workIn the past few weeks, most of the functionality intended to ship in 6.7 has been put in place behind the "grid interactivity" experiment flag:
Next stepsTesting of these new features is highly appreciated! There are a few small bugs and enhancements outstanding (see list in issue description), and once they are fixed, the new Manual grid should be in a good place to stabilize in the plugin. There's also the alignments feature which would be nice to have in 6.7, but needs some design work first: #62895 |
Did a bit of housekeeping here 🧹 I've:
My hope is that it's now much clearer how other contributors can help with development. @tellthemachines is away until October, so any help is much appreciated 🙂 |
Very unlikely this will make it into 6.7 – I've punted it in the project board. |
Moves the backport changelog file for WordPress/wordpress-develop#6910 from the WordPress 6.7 directory to the WordPress 6.8 directory. These changes are now targeted for a future release and do not need to be merged in to WordPress 6.7 as part of the package update. See #57478. Co-authored-by: peterwilsoncc <peterwilsoncc@git.wordpress.org> Co-authored-by: noisysocks <noisysocks@git.wordpress.org>
Could anyone provide additional feedback on #64995, which solves one problem in RTL languages? |
Part of Design Tools overview and Layout improvements.
The Grid layout type shipped in WP 6.3 and in WP 6.6 a new Grid variation for the Group block was stabilised, along with support for grid children spanning multiple columns and rows, and on-canvas resize handles.
What's this currently look like?
Under Gutenberg > Experiements, enable "Grid interactivity".
When a Grid block is set to Manual mode (in the block sidebar under Layout), it's now possible to drag and drop blocks into specific grid cells, as well as moving them up, down, left and right with the movers:
moving-blocks-around.mp4
Tasks
Needed before we remove experimental flag
manualPlacement
attribute to set manual grid mode and allow responsive behaviour in both modes. #62777Needed for 6.7
max
to 'Row span' and 'Column span' controls #63967Nice to have
The text was updated successfully, but these errors were encountered: