-
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
Separate Block Spacing in Row Block into Vertical and Horizontal Options #60643
Comments
Thanks for opening this issue, it's a good idea! One technical challenge to implementation is that the Row block is actually a variation of the Group block and there currently isn't a way to opt in for separate sides of gap for a particular variation / layout type. The standard Group block only has a vertical orientation, so wouldn't support separate sides. So, we'd need some way to indicate "if this block is using flex layout type, expose both directions, otherwise just show a single control". |
@andrewserong that totally makes sense! The default vs row variants of the Group block are so distinct that I often forget that they're the same block and not discrete ones. I'm really excited for the |
Has the idea of splitting these increasingly complex layouts option out of the group block been explored? It feels like moving all that into some sort of “layout container” block would allow the group block to return to being a nice basic tool. (Of course, you could still transform a group block into a layout block easily.) |
It does seem odd that such disparate functionality is all folded into a single block using only variants to differentiate them. Paragraphs and Headings have a lot more in common with each other than a regular Group vs Grid block, yet they are separate blocks. |
Hi, I believe these two are duplicates? #47084 |
@carolinan You are correct! I did not see #47084 when I first made this issue. Do you think I should close this one in favor of the other since it's older, or is it better to close the older one since this one has more recent comments and is linked to from #61453? |
What problem does this address?
The
Columns
block allows for block spacing to be set separately for vertical and horizontal axes. Since it's aflex
container, this setsrow-gap
andcolumn-gap
separately.The
Row
block does not allow this. It only allows forBlock Spacing
which just sets thegap
property, with no flexibility to have differentrow
andcolumn
gaps for when theRow
block wraps.What is your proposed solution?
Follow the example of the
Columns
block and separate vertical from horizontal block spacing settings in theRow
block.The text was updated successfully, but these errors were encountered: