You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
strarsis
changed the title
Full / wide alignment
Full / wide alignment for visually fully aligned block which content is still width-constrained
Mar 8, 2020
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.
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 thewide
alignment.wide
aligned groups would have to extend to full width asfull
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 towide
alignment, too, the editor has to be "tamed" a bit.The text was updated successfully, but these errors were encountered: