Repository navigation
Closed
Labels
[Package] Components/packages/components[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issues
Description
After #40740, there are two different props in the Popover component to affect is position: position (legacy) and placement (new)
In order to deprecate the legacy position prop from the Popover component, we should first migrate all current usages to the new placement prop:
- Block switcher preview Popover: use new placement prop instead of legacy position prop #44387
- LinkControl: use Popover new placement prop instead of legacy position prop in README #44388
- Format Toolbar Popover: use new placement prop instead of legacy position prop #44389
- URL Input Popover: use new placement prop instead of legacy position prop #44390
- Button block Popover: use placement prop instead of legacy position prop #44392
- Navigation Link Popover: use placement prop instead of legacy position prop #44394
- Navigation Submenu Popover: use placement prop instead of legacy position prop #44395
- Autocompleter Popover: use placement prop instead of legacy position prop #44396
- Image format popover: use placement prop instead of legacy position prop #44398
- Link format Popover: use placement prop instead of legacy position prop #44399
- remove
positionfromPopover's storybook - consider exporting the position-to-placement converstion utility for URLPopover, Dropdown, Tooltip and DotTip
- URLPopover: use new placement prop instead of legacy position prop #44391
- Dropdown (requires deprecating
positionin favour ofpopoverProps.placement,Dropdown: thepositionprop is made redundant bypopoverProps#46858)Dropdown: deprecatepositionprop, usepopoverPropsinstead #46865 - Tooltip (requires deprecating
positionin favour ofplacementtoo) Tooltip: addplacementprop to replace deprecatedposition#54264 - Components: add
placementprop to replacepositioninRangeControl#70326 - Warning: Replace popoverProps.position to popoverProps.placement #70347
- Social Link: Use
placementprop for popover positioning #70348 - Media List: Use 'placement' prop for popover positioning #70350
- Circular Option Picker: Use 'placement' prop for popover positioning #70359
- Any leftover
position={orposition:props:-
tooltipPositionprop (ie.Buttoncomponent)
-
Metadata
Metadata
Assignees
Labels
[Package] Components/packages/components[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issues
Type
Projects
- StatusShow more project fieldsDone 🎉
Activity
[-]Refactor all consumers to use the new prop[/-][+]Popover: refactor all usages of the legacy `position` prop to the `placement` prop[/+]annezazu commentedon Mar 21, 2024
It looks like the majority of work planned here has been completed. Closing this out as a result but happy to reopen if that's incorrect!
ciampo commentedon Jul 19, 2024
@annezazu I think the issue could still be relevant, I'd love to get to complete the missing tasks if possible. Let's keep it open for now, and see if we can get to (at least) some of those
ciampo commentedon Sep 3, 2026
Closing as mostly completed. Our efforts are now aimed at the new
@wordpress/uipackage which aims to replace legacyPopoverusage, too.