Skip to content

LinkControl: use Popover new placement prop instead of legacy position prop in README - #44388

Merged
ciampo merged 1 commit into
trunkfrom
refactor/link-control-README-popover-placement-position
Oct 24, 2022
Merged

ciampo merged 1 commit into
trunkfrom
refactor/link-control-README-popover-placement-position

Conversation

@ciampo

@ciampo ciampo commented Sep 22, 2022 •

Copy link
Copy Markdown
Contributor

What?

Part of #44401

Use the new placement prop instead of the legacy position prop to define the Popover's placement when opened.

Why?

With the recent refactor of the Popover component to floating-ui, we're in the process of refactoring all of its usages to the new placement prop (native to floating-ui). See #44401 for more details

How?

Swap position with the new corresponding placement.

See this conversion table that we're currently using to map position values to placement values.

Testing Instructions

This just a change in documentation files, no runtime changes are included.

@ciampo ciampo self-assigned this Oct 21, 2022
@ciampo ciampo added the [Type] Developer Documentation Documentation for developers label Oct 21, 2022
@ciampo
ciampo requested review from chad1008 and mirka October 21, 2022 12:58
@ciampo
ciampo marked this pull request as ready for review October 21, 2022 12:58
@ciampo
ciampo requested a review from ellatrix as a code owner October 21, 2022 12:58

@mirka mirka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@ciampo
ciampo merged commit 2162429 into trunk Oct 24, 2022
@ciampo
ciampo deleted the refactor/link-control-README-popover-placement-position branch October 24, 2022 16:01
@github-actions github-actions Bot added this to the Gutenberg 14.5 milestone Oct 24, 2022
@bph bph mentioned this pull request Feb 6, 2023
47 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants