From ef6ebbddb522656aad63e05cc9ea4468a7769369 Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Thu, 24 Oct 2019 14:02:17 +0200 Subject: [PATCH] Fix regression with Gallery margin. (#18019) I failed to verify the Gallery block when I approved https://github.com/WordPress/gutenberg/pull/17958#issuecomment-543597183 and therefore caused a regression. This PR adds explicity left margins and paddings to the gallery ul to ensure there isn't any added padding and margin. --- packages/block-library/src/gallery/editor.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/gallery/editor.scss b/packages/block-library/src/gallery/editor.scss index ae36e0aa74ac33..5931d95b5300ff 100644 --- a/packages/block-library/src/gallery/editor.scss +++ b/packages/block-library/src/gallery/editor.scss @@ -17,8 +17,10 @@ figure.wp-block-gallery { margin: 0; } -// need to override default editor ul styles +// Necessary to to override default editor ul styles. .blocks-gallery-grid.blocks-gallery-grid { + padding-left: 0; + margin-left: 0; margin-bottom: 0; }