Skip to content

Commit

Permalink
Fix regression with Sibling Inserter. (#11969)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
jasmussen authored Nov 19, 2018
1 parent c5e146e commit 66b95af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 66b95af

Please sign in to comment.