-
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
Patterns in focus mode should not render with layout padding applied #51937
Comments
Did you mean that the controls should be hidden too? I think the inconsistency could be confusing. |
No, I mean the padding applied to the block content area should not be present. |
But then the control will be there in the sidebar but it will look like it does nothing when you change the spacing. |
You're focused in on a pattern; not the site. The layout padding doesn't apply to each individual padding, so it shouldn't be applied visually within the editor - if it's not applied to the pattern anywhere else. |
What about if the wrapping block is a container (group, columns, media & text) then the horizontal and vertical padding is omitted from focus view? The trailing inserter is another issue. CleanShot.2023-07-14.at.15.44.12.mp4cc @jameskoster as you ran into this earlier as well. |
I'm not sure there needs to be an if. Imo the "Layout" padding from global styles should be removed in this view regardless. |
I suppose if the pattern doesn’t have a wrapper with its own padding, then its text/contents would be pressed up to the frame edges. |
I don't think that's a problem? It's an accurate portrayal of what you'd see when inserting the pattern which is (imo) what we should be aiming for in this context. Otherwise the user could mistakenly assume a doesn't need padding when it does. |
I still find it confusing that if I am indeed focusing on the pattern, not the site, why are the site options like global styles available? |
@carolinan do you mean the global styles panel? I think that's a reasonable question to ask, but probably better suited to a separate issue. |
1 Yes, |
That depends on where the pattern is inserted: if it goes in at root level, then what we currently see in focus mode is an accurate portrayal of what it'll look like. If it's inserted inside a nested container such as a Column, then the root padding won't appear. |
As previewed, patterns seen within the Library do not render with applied layout padding. But as you click through to edit one, the padding is then applied.
The Global Styles > Layout > Padding value should probably be omitted from the canvas when in focus mode.
The text was updated successfully, but these errors were encountered: