Skip to content

Commit

Permalink
Tweak FocalPointPicker inspector controls (#58448)
Browse files Browse the repository at this point in the history
* Use __next40pxDefaultSize

* "Focal point" -> "Focal point"
  • Loading branch information
richtabor authored Jan 30, 2024
1 parent aa4f136 commit 54fc929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/block-library/src/cover/edit/inspector-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ export default function CoverInspectorControls( {
{ showFocalPointPicker && (
<FocalPointPicker
__nextHasNoMarginBottom
label={ __( 'Focal point picker' ) }
__next40pxDefaultSize
label={ __( 'Focal point' ) }
url={ url }
value={ focalPoint }
onDragStart={ imperativeFocalPointPreview }
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ function MediaTextEdit( { attributes, isSelected, setAttributes } ) {
{ imageFill && mediaUrl && mediaType === 'image' && (
<FocalPointPicker
__nextHasNoMarginBottom
label={ __( 'Focal point picker' ) }
__next40pxDefaultSize
label={ __( 'Focal point' ) }
url={ mediaUrl }
value={ focalPoint }
onChange={ ( value ) =>
Expand Down

0 comments on commit 54fc929

Please sign in to comment.