Nested blocks should always honor the parent content and wide widths when set #65091
Open
2 tasks done
Labels
[Package] Block editor
/packages/block-editor
[Package] Block library
/packages/block-library
[Type] Bug
An existing feature does not function as intended
Description
Noticed while working on #64906
Some blocks may contain nested blocks and provide the ability to set a custom 'content width' and a custom 'wide width' for the nested blocks. For example, the Group, Cover, Columns block support this feature.
This is different from the 'content width' and 'wide width' set by the theme or in the Global styles. Instead, these custom widths are block attributes and are meant to be applied only to the nested blocks of a specific parent block.
So far so good. However, it appears not all nested blocks are fully compatible with this feature. Also, setting a background on the nested paragraph make things even more unclear. As a user, I'm very confused by how this feature works and by how it's presented in the UI.
Step-by-step reproduction instructions
At this point, the editor should be in the state illustrated in the screenshot below:
box-sizing: content-box;
so the padding increases the width. As such, the Paragraph doesn't honor the custom width set on the parent for its nested blocks.Screenshot:
Screenshot:
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: