Skip to content

Commit

Permalink
DimensionsPanel: Apply 40px default size to UI when no spacing preset…
Browse files Browse the repository at this point in the history
… is available (WordPress#65300)

* DimensionsPanel: Apply 40px default size to UI when no spacing preset is available

* Revert unnecessary change

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
  • Loading branch information
3 people committed Sep 13, 2024
1 parent 9e88d86 commit 257d26a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ export default function DimensionsPanel( {
>
{ ! showSpacingPresetsControl && (
<BoxControl
__next40pxDefaultSize
values={ paddingValues }
onChange={ setPaddingValues }
label={ __( 'Padding' ) }
Expand Down Expand Up @@ -571,6 +572,7 @@ export default function DimensionsPanel( {
>
{ ! showSpacingPresetsControl && (
<BoxControl
__next40pxDefaultSize
values={ marginValues }
onChange={ setMarginValues }
inputProps={ inputProps }
Expand Down Expand Up @@ -617,6 +619,7 @@ export default function DimensionsPanel( {
{ ! showSpacingPresetsControl &&
( isAxialGap ? (
<BoxControl
__next40pxDefaultSize
label={ __( 'Block spacing' ) }
min={ 0 }
onChange={ setGapValues }
Expand Down

0 comments on commit 257d26a

Please sign in to comment.