From ab3ab6bf737e06313b91e6e69f63a36a22eb0a68 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 29 Apr 2020 13:08:43 +0100 Subject: [PATCH] Fix list block not properly aligned --- packages/block-editor/src/components/block-list/style.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index 3e561bd06eb08e..63bc8101cf39ac 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -251,10 +251,13 @@ } } -.wp-block { +// Extra specificity needed to override default element margins like lists (ul). +.block-editor-block-list__layout .wp-block { margin-left: auto; margin-right: auto; +} +.wp-block { // Alignments. &[data-align="left"], &[data-align="right"] {