Skip to content

Commit

Permalink
Fix clicking movers
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 27, 2022
1 parent b80b932 commit 2cc2ba4
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 @@ -197,7 +197,12 @@ function BlockPopoverInbetween( {
) }
__unstableForcePosition
>
<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 @@ -18,11 +18,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 2cc2ba4

Please sign in to comment.