diff --git a/src/components/block-gallery/styles/editor.scss b/src/components/block-gallery/styles/editor.scss index 4f0ec970fe0..0d8c0761287 100644 --- a/src/components/block-gallery/styles/editor.scss +++ b/src/components/block-gallery/styles/editor.scss @@ -17,3 +17,25 @@ [data-type*="coblocks/gallery"] .is-appender { outline-offset: -1px; } + +// Apply gallery placeholder styles to gallery blocks. +[data-type*="coblocks/gallery"] { + + .coblocks-gallery, + .coblocks-gallery--item, + .components-resizable-box__container { + + ~ div .coblocks-gallery--figure.is-appender .components-placeholder__label { + display: none; // Gallery has images - hide label div + } + } + + .coblocks-gallery--figure.is-appender { + margin-bottom: 12px; + padding: 12px; + + .components-placeholder__fieldset .block-editor-media-placeholder__upload-button { + margin-bottom: 0 !important; + } + } +}