diff --git a/packages/editor/src/components/visual-editor/index.js b/packages/editor/src/components/visual-editor/index.js index 6a5466a265c3e..795a4f983f153 100644 --- a/packages/editor/src/components/visual-editor/index.js +++ b/packages/editor/src/components/visual-editor/index.js @@ -462,7 +462,13 @@ function VisualEditor( { renderingMode !== 'post-only' || isDesignPostType ? 'wp-site-blocks' - : `${ blockListLayoutClass } wp-block-post-content` // Ensure root level blocks receive default/flow blockGap styling rules. + : `${ blockListLayoutClass } wp-block-post-content`, // Ensure root level blocks receive default/flow blockGap styling rules. + { + 'has-global-padding': + renderingMode === 'post-only' && + ! isDesignPostType && + hasRootPaddingAwareAlignments, + } ) } layout={ blockListLayout } dropZoneElement={