From df2b5054f5911f19de1753361ee88918a5ad5c83 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 20 May 2022 19:11:31 +0100 Subject: [PATCH] prevent selecting sub blocks --- .../src/components/block-content-overlay/style.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/block-editor/src/components/block-content-overlay/style.scss b/packages/block-editor/src/components/block-content-overlay/style.scss index fbc31e4aecf670..f3ee3f3f436c70 100644 --- a/packages/block-editor/src/components/block-content-overlay/style.scss +++ b/packages/block-editor/src/components/block-content-overlay/style.scss @@ -16,10 +16,8 @@ background: rgba(var(--wp-admin-theme-color--rgb), 0.1); box-shadow: 0 0 0 $border-width var(--wp-admin-theme-color) inset; } -} -.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block::before { - display: none; - content: none; - z-index: -1; + .block-editor-block-list__block { + pointer-events: none; + } }