From 26b5dd6e6926093c576351ab09a5af373ec1fa4e Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Thu, 22 Sep 2022 20:11:49 +0200 Subject: [PATCH] URLPopover: use new placement prop instead of legacy position prop --- packages/block-editor/src/components/url-popover/README.md | 6 +++--- packages/block-editor/src/components/url-popover/index.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/block-editor/src/components/url-popover/README.md b/packages/block-editor/src/components/url-popover/README.md index defa20050cdcf9..270a13858a3021 100644 --- a/packages/block-editor/src/components/url-popover/README.md +++ b/packages/block-editor/src/components/url-popover/README.md @@ -94,13 +94,13 @@ class MyURLPopover extends Component { The component accepts the following props. Any other props are passed through to the underlying `Popover` component ([refer to props documentation](/packages/components/src/popover/README.md)). -### position +### placement -Where the Popover should be positioned relative to its parent. Defaults to "bottom center". +Where the Popover should be positioned relative to its parent. Defaults to "bottom". - Type: `String` - Required: No -- Default: "bottom center" +- Default: "bottom" ### focusOnMount diff --git a/packages/block-editor/src/components/url-popover/index.js b/packages/block-editor/src/components/url-popover/index.js index 38d5e06015ec35..acca1cf7464a3b 100644 --- a/packages/block-editor/src/components/url-popover/index.js +++ b/packages/block-editor/src/components/url-popover/index.js @@ -16,7 +16,7 @@ function URLPopover( { additionalControls, children, renderSettings, - position = 'bottom center', + placement = 'bottom', focusOnMount = 'firstElement', ...popoverProps } ) { @@ -32,7 +32,7 @@ function URLPopover( {