Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

ciampo
Copy link
Contributor

@ciampo ciampo commented Sep 22, 2022

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.

Copy link
Member

@mirka mirka left a comment

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
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