From 66b95afaa5f812d754fe2df56b4ad008846468c8 Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Mon, 19 Nov 2018 11:17:19 +0100 Subject: [PATCH] Fix regression with Sibling Inserter. (#11969) * Fix regression with Sibling Inserter. The sibling inserter is the plus you see when you hover between two blocks. When you have no blocks selected, or use the unified toolbar mode. you can access the sibling inserter between any two blocks. When you have a block selected, and have the block-affixed toolbars, only the sibling inserter below the selected block should be availabl e. Though it should still be keyboard accessible. This PR fixes that. * Fix for focus mode. --- packages/editor/src/components/block-list/style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/block-list/style.scss b/packages/editor/src/components/block-list/style.scss index 879e47b7a2cb52..e6787f1128204f 100644 --- a/packages/editor/src/components/block-list/style.scss +++ b/packages/editor/src/components/block-list/style.scss @@ -686,7 +686,8 @@ // Don't show the sibling inserter before the selected block. .edit-post-layout:not(.has-fixed-toolbar) { // The child selector is necessary for this to work properly in nested contexts. - .is-selected > .editor-block-list__insertion-point-inserter { + .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter, + .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter { opacity: 0; pointer-events: none;