Skip to content

Commit

Permalink
Fix clicking movers
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 22, 2022
1 parent 0b48e62 commit 3b08836
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ function BlockPopoverInbetween( {
props.className
) }
>
<div style={ style }>{ children }</div>
<div
className="block-editor-block-popover__inbetween-container"
style={ style }
>
{ children }
</div>
</Popover>
);
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
Expand Down
10 changes: 7 additions & 3 deletions packages/block-editor/src/components/block-popover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@

// Allow clicking through the toolbar holder.
pointer-events: none;

// Position the block toolbar.
> * {
> div > * {
pointer-events: all;
}
}
}

.block-editor-block-popover__inbetween-container {
pointer-events: none !important;
> div > * {
pointer-events: all;
}
}

0 comments on commit 3b08836

Please sign in to comment.