From 25d2b4c906bd04ea0520e4c54d015864dda809ef Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Tue, 18 Oct 2022 11:52:39 +1100 Subject: [PATCH] Fix visibility of nested Group block appender (#45050) --- .../src/components/button-block-appender/style.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/button-block-appender/style.scss b/packages/block-editor/src/components/button-block-appender/style.scss index 45358b9a0f0503..b2af07e50a9443 100644 --- a/packages/block-editor/src/components/button-block-appender/style.scss +++ b/packages/block-editor/src/components/button-block-appender/style.scss @@ -36,8 +36,9 @@ .block-list-appender:only-child { .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > &, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > &, - .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > &, - .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > & { + // Legacy groups have an inner container so need to be targeted separately + .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .wp-block-group__inner-container > &, + .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .wp-block-group__inner-container > & { pointer-events: none; &::after {