Can not add different content widths for different blocks in theme.json, display bug with alignment control #37124
Labels
[Feature] Layout
Layout block support, its UI controls, and style output.
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Enhancement
A suggestion for improvement.
Description
If someone tries to use different content widths for different blocks in theme.json, the control in the editor
shows the numbers, but the widths do not work.
If you add this code and place a group block inside a group block,
the alignment control for the parent block displays 840 and 1100, the control for the child displays 440 and 800.
The actual width of the child is 840.
It is unclear if this is 1) Not supported yet 2) Supposed to work but is bugged.
It is not unlikely that developers expect settings.layout to work similarly to other settings where you can add different values for different blocks.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
WordPress 5.9-beta1-52296-src
With and without Gutenberg 12.0.2.
Please confirm that you have searched existing issues in the repo.
No
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: