Skip to content

Commit

Permalink
fix ui shifting when switching between shadow options
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed Feb 23, 2024
1 parent 8041565 commit 4bb0d66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function ShadowIndicator( { label, isActive, onSelect, shadow } ) {
style={ { boxShadow: shadow } }
showTooltip
>
{ isActive && <Icon icon={ check } /> }
{ isActive && <Icon icon={ check } size={ 22 } /> }
</Button>
}
/>
Expand Down
3 changes: 3 additions & 0 deletions packages/block-editor/src/components/global-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
margin-right: $grid-unit-15;
margin-bottom: $grid-unit-15;

display: inline-flex;
align-items: center;
justify-content: center;
height: $button-size-small + 2 * $border-width;
width: $button-size-small + 2 * $border-width;
box-sizing: border-box;
Expand Down

0 comments on commit 4bb0d66

Please sign in to comment.