Skip to content

Commit

Permalink
FocalPointPicker: add new opt-in prop (#45958)
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp authored Nov 23, 2022
1 parent 2982e4f commit 2a50308
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 @@ -162,6 +162,7 @@ export default function CoverInspectorControls( {
) }
{ showFocalPointPicker && (
<FocalPointPicker
__nextHasNoMarginBottom
label={ __( 'Focal point picker' ) }
url={ url }
value={ focalPoint }
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ function MediaTextEdit( { attributes, isSelected, setAttributes, clientId } ) {
) }
{ imageFill && mediaUrl && mediaType === 'image' && (
<FocalPointPicker
__nextHasNoMarginBottom
label={ __( 'Focal point picker' ) }
url={ mediaUrl }
value={ focalPoint }
Expand Down

0 comments on commit 2a50308

Please sign in to comment.