From d2a36ec0c3893e1ba6a4cf0cb7422407f143d46b Mon Sep 17 00:00:00 2001 From: Joen A <1204802+jasmussen@users.noreply.github.com> Date: Thu, 4 Feb 2021 11:36:25 +0100 Subject: [PATCH] Fix label only mode parent selector. (#28721) --- .../src/components/block-toolbar/style.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/block-editor/src/components/block-toolbar/style.scss b/packages/block-editor/src/components/block-toolbar/style.scss index 6be586196f737b..f34a4e69947ecc 100644 --- a/packages/block-editor/src/components/block-toolbar/style.scss +++ b/packages/block-editor/src/components/block-toolbar/style.scss @@ -46,12 +46,25 @@ .block-editor-block-contextual-toolbar.has-parent { margin-left: calc(#{$grid-unit-60} + #{$grid-unit-10}); + + .show-icon-labels & { + margin-left: 0; + } } .block-editor-block-parent-selector { position: absolute; top: -$border-width; left: calc(-#{$grid-unit-60} - #{$grid-unit-10} - #{$border-width}); + + .show-icon-labels & { + position: relative; + left: auto; + top: auto; + margin-top: -$border-width; + margin-left: -$border-width; + margin-bottom: -$border-width; + } } // Block controls.