Description
openedon Nov 16, 2023
Description
Through some trial and error I think I've isolated why I've struggled with the rootPaddingAwareAlignments features that is supposed to help with managing the root application padding in regards to block alignment. Layout is a bigger conversation and I think there are a few issues here that bear discussing. But to keep this simple I think I've identified two situations in which this feature is behaving unexpectedly.
FIrst, If you group a set of blocks and that group has the combo of "layout":{"type":"constrained"}
and "align":"full"
then its children will breach the root padding. The group here has a blue background.
Second, if you group a set of blocks and that group has the combo of "layout":{"type":"default"}
and "align":"full"
then it's direct children will respect root padding but other direct child groups and their children will breach root padding. The blue group here has a nested group with a gray background and you can see it's children breaching root padding.
Step-by-step reproduction instructions
Set rootPaddingAwareAlignments to true
Add root padding in styles.spacing.padding
Group a set of blocks
Add "layout":{"type":"constrained"}
and "align":"full"
check the preview at a narrow screen width.
set "layout":{"type":"default"}
and add a nested group with any settings that contains blocks.
check the preview at a narrow screen width
Screenshots, screen recording, code snippet
No response
Environment info
WP 6.4.1
PHP 8
wp-now env
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes