Skip to content

Commit

Permalink
URLPopover: use new placement prop instead of legacy position prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 22, 2022
1 parent 9afe679 commit 26b5dd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/block-editor/src/components/url-popover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/url-popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function URLPopover( {
additionalControls,
children,
renderSettings,
position = 'bottom center',
placement = 'bottom',
focusOnMount = 'firstElement',
...popoverProps
} ) {
Expand All @@ -32,7 +32,7 @@ function URLPopover( {
<Popover
className="block-editor-url-popover"
focusOnMount={ focusOnMount }
position={ position }
placement={ placement }
shift
{ ...popoverProps }
>
Expand Down

0 comments on commit 26b5dd6

Please sign in to comment.