-
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 Experiments: Testing feedback #62928
Comments
Thanks for giving this a test run @ndiego!
Hmm, were you expecting more of a masonry layout? There seems to be some appetite for that, so it would be good to consider adding it as an option. The main technical obstacle is that it's not yet possible to implement with CSS only, and having to add JS in the front end it might make more sense to add it to specific blocks as interactivity, rather than a layout type. I wouldn't expect a grid to behave like masonry, but more like a table, in which the tallest cell will determine the height of the rest of the row. That said, it might be good to look into a way of setting max/min row height! I think in this case both max and min settings could be useful.
This sounds like a bug; front end and editor should match. I'll look into it!
Oh well spotted! I suspect that's due to the visualizer being a popover outside the editor canvas. Adding it to the bug list 😅
I'm looking into combining the Columns and Minimum column width settings to make responsive grids with a max column number in #62777, which hopefully will solve that problem! |
Oh wait I think I see what you mean! Every row is the same height, correct? Update: I pushed a fix to #62777. In that PR, rows are now the height of their tallest block: |
Yeah exactly, not masonry. Thanks!
Yeah, that must have been what happened. |
Casting a broader net here, @WordPress/gutenberg-design. Note that we do want mobile controls, but we want to build that in a generic-for-all-blocks way, not unique to this block. It's been time for a while, and I'm happy to work on it, just important we don't build more per-block code. Separately, that text-labels-only mode for the block toolbar, do we have a tracking issue for legibility of those strings yet? I doubt half of that is legible on mobile. |
If we allow users to set both minimum column width and a max column count in either mode, they can control the point at which the grid columns reflow. This won't replace mobile controls altogether, but until we have those controls (and I agree they should be generic, not block-specific), we can add a little baseline responsive behaviour to grid by taking advantage of its unique properties.
It's actually not terrible 😅 because the toolbar scrolls, so all buttons are reachable: The main things you can't do in mobile mode are selecting the parent block and dragging and dropping. #25237 could potentially help with the drag and drop but that's unrelated to labels. The text label toolbar is actually worse on smaller desktop screens, because it can be partially hidden so its right hand side becomes inaccessible unless you're using the keyboard, in which case you can reach the Options button but it looks really broken: |
Thanks for the feedback folks! I'm going to go ahead and close this issue now, as the reported bugs have been addressed, except for the visualizer being visible outside of the editor canvas. There's now a dedicated issue for that one, as it also overlaps the sidebars in mobile: #63275. The toolbar situation has been somewhat improved in #63394, though it can still benefit from further improvement, but that's not so much a grid specific issue so I think it can be addressed separately. |
Here's some feedback from my testing of the new Grid experiments introduced in #61025. The video has the full walkthrough, but here are the highlights:
Video Walkthrough
grid-experiments-testing.mp4
cc @tellthemachines @noisysocks @jasmussen
The text was updated successfully, but these errors were encountered: