From e007cad755b8279b8f4d64961298025f61c24152 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Mon, 23 Jan 2023 14:41:16 +0900 Subject: [PATCH] Template parts and Reusable block: Fix multiple selection overlay styles --- .../src/components/block-content-overlay/content.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/block-content-overlay/content.scss b/packages/block-editor/src/components/block-content-overlay/content.scss index 17fd28ae07279a..41ed71e0b4c27c 100644 --- a/packages/block-editor/src/components/block-content-overlay/content.scss +++ b/packages/block-editor/src/components/block-content-overlay/content.scss @@ -14,17 +14,17 @@ z-index: z-index(".block-editor-block-list__block.has-block-overlay"); } - &::after { + &:not(.is-multi-selected)::after { content: none !important; } - &:hover:not(.is-dragging-blocks)::before { + &:hover:not(.is-dragging-blocks):not(.is-multi-selected)::before { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); box-shadow: 0 0 0 $border-width var(--wp-admin-theme-color) inset; } - &.is-reusable:hover:not(.is-dragging-blocks)::before, - &.wp-block-template-part:hover:not(.is-dragging-blocks)::before { + &.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected)::before, + &.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected)::before { background: rgba(var(--wp-block-synced-color--rgb), 0.04); box-shadow: 0 0 0 $border-width var(--wp-block-synced-color) inset; }