diff --git a/packages/block-library/src/latest-posts/edit.js b/packages/block-library/src/latest-posts/edit.js index e609bda9dc50fe..e75cc7adb95767 100644 --- a/packages/block-library/src/latest-posts/edit.js +++ b/packages/block-library/src/latest-posts/edit.js @@ -252,6 +252,11 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) { onChange={ ( value ) => setAttributes( { displayPostContent: value } ) } + className={ + displayPostContent + ? 'latest-posts-toggle-control-margin-bottom' + : '' + } /> { displayPostContent && ( setAttributes( { displayAuthor: value } ) } + className="latest-posts-toggle-control-margin-bottom" /> -
setAttributes( { displayFeaturedImage: value } ) } + className="latest-posts-toggle-control-margin-bottom" /> { displayFeaturedImage && ( <> @@ -421,6 +427,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) { addLinkToFeaturedImage: value, } ) } + className="latest-posts-toggle-control-margin-top" /> ) } diff --git a/packages/block-library/src/latest-posts/editor.scss b/packages/block-library/src/latest-posts/editor.scss index fe901480974461..26ef7bcd55b5ff 100644 --- a/packages/block-library/src/latest-posts/editor.scss +++ b/packages/block-library/src/latest-posts/editor.scss @@ -18,3 +18,11 @@ padding-left: 0; } } + +.latest-posts-toggle-control-margin-bottom { + margin-bottom: 15px !important; +} + +.latest-posts-toggle-control-margin-top { + margin-top: 15px !important; +}