Skip to content
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

Full / wide alignment for visually fully aligned block which content is still width-constrained #20708

Closed
strarsis opened this issue Mar 8, 2020 · 1 comment
Labels
[Type] Question Questions about the design or development of the editor.

Comments

@strarsis
Copy link
Contributor

strarsis commented Mar 8, 2020

For many themes I encountered a common pattern for page sections:
The section itself extends to the full page width, but the content is still constrained to the usual max-width of the other content.
In Gutenberg, full aligned blocks extend to the full width of the page, but its content is also not constrained.
One way to still implement this in Gutenberg but keep the option to fully extend a group using full alignment would be to use the wide alignment.
wide aligned groups would have to extend to full width as full does, but still constraint their inner content wrapper.
Is this the right approach for Gutenberg? I would have to copy some styles for full alignment and apply them to wide alignment, too, the editor has to be "tamed" a bit.

@strarsis strarsis changed the title Full / wide alignment Full / wide alignment for visually fully aligned block which content is still width-constrained Mar 8, 2020
@jorgefilipecosta jorgefilipecosta added the [Type] Question Questions about the design or development of the editor. label Mar 9, 2020
@tellthemachines
Copy link
Contributor

Hi there! As of #29335, it is now possible for a theme to provide settings to constrain the width of all blocks inside a group block. In order to do so, you have to add a theme.json file to your theme, and you can find info on how to configure it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Question Questions about the design or development of the editor.
Projects
None yet
Development

No branches or pull requests

3 participants