diff --git a/packages/block-library/src/latest-comments/style.scss b/packages/block-library/src/latest-comments/style.scss index 61c6aea843a742..14d3d67eae5edb 100644 --- a/packages/block-library/src/latest-comments/style.scss +++ b/packages/block-library/src/latest-comments/style.scss @@ -1,4 +1,15 @@ +// Lower specificity - target list element. ol.wp-block-latest-comments { + // Removes left spacing in Customizer Widgets screen. + // Due to low specificity this will be safely overriden + // by default wp-block layout styles in the Post/Site editor + margin-left: 0; +} + +// Higher specificity - target list via wrapper. +.wp-block-latest-comments .wp-block-latest-comments { + // Remove left spacing. Higher specificity required to + // override default wp-block layout styles in the Post/Site editor. padding-left: 0; } diff --git a/packages/block-library/src/latest-posts/style.scss b/packages/block-library/src/latest-posts/style.scss index b52fb34cb26f48..2df097b3fc9907 100644 --- a/packages/block-library/src/latest-posts/style.scss +++ b/packages/block-library/src/latest-posts/style.scss @@ -9,11 +9,13 @@ } &.wp-block-latest-posts__list { list-style: none; + padding-left: 0; li { clear: both; } } + &.is-grid { display: flex; flex-wrap: wrap;