-
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
Suggestion: Simplify the layout concept #36082
Comments
I agree with you that not having controls in GS for the default layout is going to cause issues for users. I haven't found myself needing to use the per-block controls as much but they do come in handy when in the early stages of theme development when we need to work on the whole template: there are a lot of cases where those come in handy to have and not require that I write the markup directly, but that may not be the use case that we are thinking here for end users. I'm ambivalent about hiding the group controls, so I'll let others decide on that matter. |
I am very in favor of having some global controls over the default layout. I have a clarifying question that may be more technical:
Say there was a control in global styles for the "default layout", how would you identify which block to set "inherit: default" on? Templates could be structured in any number of ways, some more predictable than others. An alternative is that this control just affects any new Group block added to a post is set to inherit the default layout. This wouldn't solve this issue though #36057 |
I don't think that control would turn on or off the default layout anywhere — it would just allow you to modify the width values for all blocks that individually opt-in. |
This looks a great idea to me. I have never used these controls on a single block. |
As block templates become more prevalent, these settings seem to make less sense to me. Shouldn't the width of the content always be governed by the template rather than a single setting? This would be more flexible as it allows you to have contextual widths. For example my post template may have a sidebar and consequently suit a narrower content width. My portfolio entries may just consist of galleries and so make use of a wider content width. If I arrange my post archives in to columns, a wider area gives the content room to breath. All that to say, could/should we remove these settings altogether? |
At the very least, I find the langue used in the UI to be very confusing. I think updating the language could help a lot: Also, if this section made use of the |
That looks better for sure, but I wonder if it should be possible to change the "full width" value? Or should that be hard coded to 100%? |
Also, thinking about the slider for the default width... how do you determine the maximum value there? Or what happens if I set the default block width to be 800px, but the container only renders at 600px 🤔 I suppose we could say it's a max-width. But I can't help but wonder if some kind of column system mightn't be more flexible. |
I think it's true that it would be helpful to have multiple width options per page template like @jameskoster suggested. But as long as theme authors define a default layout width for content and wide blocks shouldn't it be possible for users to change these settings as well? I did have users ask about this. For changing page template width: How would this work for users to change them in a single instance? Would there be an setting for page width? I like the idea to have flexible page width, but somehow I don't understand how this should or could work. Would love to hear more about it. |
This came up as part of the eleventh call for testing for the FSE Outreach Program as a point of confusion:
Essentially, she was trying to set the overall width of all blocks within the template but couldn't find a place to do so. Here's a video showing the understandable confusion: Template.Block.Settings.mp4 |
@aaronrobertshaw and @andrewserong |
Thanks for the ping @paaljoachim — I've added this issue to the design tools overview, so it's tracked alongside some of the other Layout issues. |
Just looking at this now again. On statement 3: On statement 2: Let it be overridden (if it must be!) in the global site editor styles, but not on a per block level. On the solution: Just think about how many times you ticked this box instead of leaving it as is. Fullwidth content is almost never used.
|
I hadn't extensively interacted with this bit of FSE until recently, and I found this setting to be pretty baffling until I set up a bunch group blocks with it enabled/disabled and compared how they acted. Once I understood what it does it didn't seem all that useful? It feels like it could use a total rethink. |
Now that layout support has been added to Column blocks with #39422, and it really should be added to other container blocks like Cover, I feel we need to earnestly revisit this UI for 13.1. It would clear up a lot of user confusion. |
I found this issue when searching for other discussions related to issue #33374. There are a lot of really insightful comments in that thread, but I'll add my two cents here for visibility since this thread is tracked as part of #39336. My apologies for folks who are subbed to both threads and see my comments twice. My users will not find the current functionality of these container layouts intuitive at all. Just like @cbirdsong, I found the concept so bewildering when testing out adding For our users, the most common use-case for a My users will expect any blocks they add to a full width I support as much flexibility in the editor as is feasible, but with controls for theme authors to provide sensible defaults and limits for users who are not developers (or even technically-inclined). The most intuitive option to add flexibility for layout in my mind is:
|
@eric-michel I'd love your thoughts on this proposal as it touches on a few of your ideas |
Marking this as superseded by #42385. |
In the runup to 5.9, I've been thinking a lot about the Layout controls. These are going out to users soon, and I still find them to be hard to understand. I'd like to outline an idea for how we might simplify these controls in the near term.
This is not intended as a long-term solution, but I think it may simplify the rollout, and make these controls easier to grasp for users.
Background
Two statements to start:
The current Layout Controls are confusing. We’ve tried to come up with a better solution, but we haven’t landed on one yet. (Issue: Consider new label and copy for Layout controls #31950)
Currently, you can add custom values for individual instances of layout (like individual group blocks), but there’s no way to edit the “default layout” at all. I think on the whole, this is actually the main thing users want to adjust. You make one adjustment, and then it's all set across your entire site. (Issue: Allow users to edit the "default layout" in the Global Styles panel #35955)
We've had these layout controls for months, and I (as an advanced user) very rarely find myself needing to set a custom per-block content width. I think I did this once for a block pattern, but that was it. The vast majority of the time I use this control, it's just to click "Inherit default layout".
The idea
The idea to simplify this consists of just two parts:
Mockups
Here are the current per-block layout controls for reference:
I do not believe most users need the ability to add custom content widths per-block. So for all blocks that currently have a layout controls, we would remove those options:
This change would distill the Layout controls into a simple toggle. This makes it far less of a complicated thing to encounter, and makes the choice into a simple yes/no option for the user. It's low stress: If they click the toggle and it doesn't look like what they want, then they can undo it with a single click.
There is a segment of users who will miss the ability to set custom alignment controls per-block, but they're certainly advanced users. If we'd like, we could keep this functionality for now, but hide the controls unless theme/pattern authors specifically define a custom layout in template/pattern markup. (This aligns to how Gutenberg has handled "experimental" controls in the past).
Moving on to Global Styles: This is the only place most users would see these "Content" and "Wide" fields. As you'd expect, changing a setting here would apply globally — to all blocks that have "Limit the content width" active.
I may be missing some details, but I'm curious if this idea resonates with folks. Thanks!
cc @shaunandrews, @jameskoster, and @youknowriad, since you've all spent a lot of time thinking about these controls.
The text was updated successfully, but these errors were encountered: