Skip to content

Commit

Permalink
Fix padding and margin visualizer positioning (#47483)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan authored Jan 27, 2023
1 parent 94ff2ba commit a535560
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/block-editor/src/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
@import "./components/plain-text/content.scss";
@import "./components/rich-text/content.scss";
@import "./components/warning/content.scss";
@import "./hooks/padding.scss";
1 change: 1 addition & 0 deletions packages/block-editor/src/hooks/margin.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export function MarginVisualizer( { clientId, attributes, forceShow } ) {
clientId={ clientId }
__unstableCoverTarget
__unstableRefreshSize={ margin }
__unstablePopoverSlot="block-toolbar"
shift={ false }
>
<div className="block-editor__padding-visualizer" style={ style } />
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/src/hooks/padding.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export function PaddingVisualizer( { clientId, attributes, forceShow } ) {
clientId={ clientId }
__unstableCoverTarget
__unstableRefreshSize={ padding }
__unstablePopoverSlot="block-toolbar"
shift={ false }
>
<div className="block-editor__padding-visualizer" style={ style } />
Expand Down
5 changes: 3 additions & 2 deletions packages/block-editor/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@
@import "./components/url-input/style.scss";
@import "./components/url-popover/style.scss";
@import "./hooks/anchor.scss";
@import "./hooks/layout.scss";
@import "./hooks/border.scss";
@import "./hooks/color.scss";
@import "./hooks/dimensions.scss";
@import "./hooks/layout.scss";
@import "./hooks/padding.scss";
@import "./hooks/position.scss";
@import "./hooks/typography.scss";
@import "./hooks/color.scss";

@import "./components/block-toolbar/style.scss";
@import "./components/inserter/style.scss";
Expand Down

0 comments on commit a535560

Please sign in to comment.