Skip to content

Commit

Permalink
Remove bottom margin using prop
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Jul 21, 2022
1 parent d924bc2 commit fe9c974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function ColorGradientControlInner( {

return (
<BaseControl
__nextHasNoMarginBottom
className={ classnames(
'block-editor-color-gradient-control',
className
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ $swatch-gap: 12px;
.block-editor-color-gradient-control__color-indicator {
margin-bottom: $grid-unit-15;
}

> .components-base-control__field {
margin-bottom: 0;
}
}

.block-editor-color-gradient-control__fieldset {
Expand Down Expand Up @@ -45,7 +41,7 @@ $swatch-gap: 12px;
}

.block-editor-panel-color-gradient-settings__dropdown-content .components-popover__content {
width: ( $swatch-size * 6 ) + ( $swatch-gap * 5 ) + ( $grid-unit-20 * 2 ); // Ensure the popover perfectly wraps the swatches.
width: ( $swatch-size * 6 ) + ( $swatch-gap * 5 ) + ( $grid-unit-20 * 2 ); // Ensure the popover perfectly wraps the swatches.
padding: $grid-unit-20;
}

Expand Down

0 comments on commit fe9c974

Please sign in to comment.