From a3ef292ff60fb108de8bc0e8b15f84c232ab2170 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Thu, 28 Mar 2019 09:01:46 -0400 Subject: [PATCH] Remove negative toolbar position rules from full-aligned blocks. (#14669) --- packages/block-editor/src/components/block-list/style.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index b1566d2ae03caa..03ed0f07bd5de3 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -904,6 +904,12 @@ .block-editor-block-contextual-toolbar > * { pointer-events: auto; } + + // Full-aligned blocks have negative margins on the parent of the toolbar, so additional position adjustment is not required. + &[data-align="full"] .block-editor-block-contextual-toolbar { + left: 0; + right: 0; + } } .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-contextual-toolbar {