Skip to content

Commit

Permalink
feat: added shouldPreserveUnit prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank-Tripathi32 committed Jan 16, 2025
1 parent 0c178dd commit 124ea55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ function FlexControls( {
flexSize: value,
} );
} }
shouldPreserveUnit
value={ flexSize }
label={ flexResetLabel }
hideLabelFromVision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export default function SpacingInputControl( {
hideLabelFromVision
className="spacing-sizes-control__custom-value-input"
size="__unstable-large"
shouldPreserveUnit
onDragStart={ () => {
if ( value?.charAt( 0 ) === '-' ) {
setMinValue( 0 );
Expand Down

0 comments on commit 124ea55

Please sign in to comment.