From 66908702d8ea9831cd5951309f190ea2f710a3f4 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Mon, 2 Dec 2019 12:25:51 +0100 Subject: [PATCH] Provide exception for placeholderes. --- .../block-editor/src/components/block-list/style.scss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index 453eebe95fa73b..81cc2b801dafae 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -191,9 +191,6 @@ .block-editor-block-list__block.is-multi-selected { > .block-editor-block-list__block-edit::before { - // Todo: start by limiting it to not nest - // Then hide selection in placeholders and do something else - // Then make a mockup for multi block selection for the new UI — this includes an exception for contiguous paragraphs border-left-color: $dark-opacity-light-800; box-shadow: inset $block-left-border-width 0 0 0 $dark-gray-500; @@ -217,6 +214,13 @@ .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block.is-multi-selected > .block-editor-block-list__block-edit::before { box-shadow: none; } + + // Provide exceptions for placeholders. + .components-placeholder { + ::selection { + background: transparent; + } + } }