Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
inbetween inserters fix
  • Loading branch information
ntsekouras committed Sep 7, 2022
commit ea8073eb3fa60eb171781b514c73f9d1d0696ee3
11 changes: 1 addition & 10 deletions packages/block-editor/src/components/block-popover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

// Enable pointer events for the toolbar's content.
&:not(.block-editor-block-popover__inbetween) .components-popover__content {
// check if rebase ok
div > * {
* {
pointer-events: all;
}
}
Expand All @@ -40,7 +39,6 @@
}

// Re-enable pointer events when the inbetween inserter has a '+' button.
//
// Needs specificity, do not simplify.
.is-with-inserter {
pointer-events: all;
Expand All @@ -50,10 +48,3 @@
}
}
}

.block-editor-block-popover__inbetween-container {
pointer-events: none !important;
> div > * {
pointer-events: all;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function ZoomOutModeInserters( { __unstableContentRef } ) {
nextClientId={ blockOrder[ index + 1 ] }
__unstableContentRef={ __unstableContentRef }
>
<div className="block-editor-block-list__insertion-point-inserter">
<div className="block-editor-block-list__insertion-point-inserter is-with-inserter">
<Inserter
position="bottom center"
clientId={ blockOrder[ index + 1 ] }
Expand Down