-
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
Simplify layout/dimensions controls across blocks into a unified Layout panel #34698
Comments
Thanks for raising the discussion for this one, too, @richtabor, that's a really interesting idea slotting the Columns block's ad hoc controls into Layout along with the block supports, and arranging by priority. Just linking @jasmussen who's recently done some exploration into the Layout vs Dimensions panels in #28356 (comment). For the Columns block's controls, I was wondering if we'll want to also eventually opt it into padding and color controls, too. With gap control between the individual columns, I could imagine someone wanting to add a background color to the Columns block, and then consistent padding and block gap. In that case, we'd also be exposing some of the other dimensions controls. Is the idea that we'd do away with the Dimensions panel altogether and consolidate the existing dimensions/spacing controls in the Layout panel? |
Nice. Definitely pertinent to the discussion in #28356! If we looked across a range of blocks, notably Group and Cover, what would a reusable layout panel look like for those? I know "Stack on mobile" is an existing feature of the block, so not the focus of this issue. But it's pertinent to the discussion in that it feels like we can do better than such a toggle, and ensure that it doesn't just look at viewport width but on context-width, to the point that using intrinsic principles (#34641) we might even be able to not have a "stack on mobile" control at all. |
+1 for simplification and unification of these controls.
@jasmussen this is an exciting possibility to even more simplification :) |
I've been thinking about how we can simplify panels in — and across — blocks and had another thought I'd like to riff on.
I started with #34558 (focused on the Group block), highlighting how we can start simplifying panels throughout the library. In theory, we could likely condense layout-esque controls into a more appropriate "Layout" panel that adapts based on the block.
Auditing today's layout-esque controls
There are margin and padding controls in the new Dimensions panel, blockGap is starting to land, width settings (group and button blocks for example), minimum height (cover block) and other block-specific layout (such as the columns block column count control, and an upcoming control for setting display layouts for the Group block).
I propose we:
Screenshots:
Here's an exploration for the Columns block:
The text was updated successfully, but these errors were encountered: