From f7c71aeb253be9bf20c2ae7025970bacff4558ab Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Thu, 26 Nov 2020 19:32:55 +0000 Subject: [PATCH] Fixes duplicate CSS --- .../block-library/src/gallery/editor.scss | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/packages/block-library/src/gallery/editor.scss b/packages/block-library/src/gallery/editor.scss index 091b71e5881b0..c67ce5bf3778d 100644 --- a/packages/block-library/src/gallery/editor.scss +++ b/packages/block-library/src/gallery/editor.scss @@ -6,21 +6,13 @@ list-style-type: none; } - .wp-block-gallery { - // Override the default list style type _only in the editor_ - // to avoid :not() selector specificity issues. - // See https://github.com/WordPress/gutenberg/pull/10358 - li { - list-style-type: none; + // @todo: this deserves a refactor, by being moved to the toolbar. + .block-editor-media-placeholder.is-appender { + .components-placeholder__label { + display: none; } - // @todo: this deserves a refactor, by being moved to the toolbar. - .block-editor-media-placeholder.is-appender { - .components-placeholder__label { - display: none; - } - .block-editor-media-placeholder__button { - margin-bottom: 0; - } + .block-editor-media-placeholder__button { + margin-bottom: 0; } } }