Skip to content

Commit

Permalink
Disallow hovering parent column block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen committed Mar 20, 2018
1 parent 22701c1 commit a943c23
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions blocks/library/columns/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
margin-right: -$block-padding;
}
}

// Prevent the parent block from being hovered, allow only nested blocks
// Selecting the parent block can be an explicit choice using a separate control
.editor-block-list__block[data-type="core/columns"] {
pointer-events: none;

> .editor-block-list__block-edit .editor-block-list__block {
pointer-events: all;
}
}

0 comments on commit a943c23

Please sign in to comment.