Closes #330 (potentially). As pointed out in #330, there's inappropriate padding left/right being added to patterns within the block previews. This PR switches the selector --wp--custom--spacing--outer is applied to, from .wp-site-blocks and body > .is-root-container to just body.
The end result is the left/right padding is properly applied within the editor, but not doubled-up within the BlockPreview component. I did have to use !important though, as the BlockPreview component has an inline style of padding: 0 on it.
Screenshots
Add screenshots of the change, if applicable
Testing Instructions
Provide steps for testing
Look at patterns in the Pattern Library, see if align full patterns are indeed
Add an align full pattern to the page, see that its still fullwidth
Check the pattern on the front-end, see if its still fullwidth
Check other elements to ensure switching padding to body does not negatively affect other areas of the theme
Description
Closes #330 (potentially). As pointed out in #330, there's inappropriate padding left/right being added to patterns within the block previews. This PR switches the selector
--wp--custom--spacing--outer
is applied to, from.wp-site-blocks
andbody > .is-root-container
to justbody
.The end result is the left/right padding is properly applied within the editor, but not doubled-up within the BlockPreview component. I did have to use
!important
though, as the BlockPreview component has an inline style ofpadding: 0
on it.Screenshots
Add screenshots of the change, if applicable
Testing Instructions
Provide steps for testing
full
patterns are indeedfull
pattern to the page, see that its still fullwidthbody
does not negatively affect other areas of the theme