Skip to content

Commit

Permalink
__next40pxDefaultSize and size adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Nov 9, 2023
1 parent 57211ac commit 5281210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/components/src/focal-point-picker/controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function FocalPointPickerControls( {
className="focal-point-picker__controls"
__nextHasNoMarginBottom={ __nextHasNoMarginBottom }
hasHelpText={ hasHelpText }
gap={ 4 }
>
<FocalPointUnitControl
label={ __( 'Left' ) }
Expand Down Expand Up @@ -85,6 +86,7 @@ export default function FocalPointPickerControls( {
function FocalPointUnitControl( props: UnitControlProps ) {
return (
<StyledUnitControl
__next40pxDefaultSize
className="focal-point-picker__controls-position-unit-control"
labelPosition="top"
max={ TEXTCONTROL_MAX }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const MediaPlaceholder = styled.div`
`;

export const StyledUnitControl = styled( UnitControl )`
width: 100px;
width: 100%;
`;

const deprecatedBottomMargin = ( {
Expand Down

0 comments on commit 5281210

Please sign in to comment.