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
  • Loading branch information
t-hamano committed Sep 13, 2024
1 parent 632d8d6 commit 7f5e6b2
Show file tree
Hide file tree
Showing 2 changed files 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
File renamed without changes.

0 comments on commit 7f5e6b2

Please sign in to comment.