Skip to content

Commit

Permalink
FocalPointPicker: add new opt-in prop
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Nov 23, 2022
1 parent 5d13d8e commit c50bfdf
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 c50bfdf

Please sign in to comment.