Repository navigation
Description
What problem does this address?
The subject of this conversation is influenced mainly by two related topics:
- The conversation in Popovers and other UI should not appear on top of modal dialog overlays #55894 and Tooltips (Popover Components) within modals aren't visible in the Site Editor and on small screens #47614 (comment)
- Our ongoing effort of rewriting some of our popover-based components to
ariakit(Tooltip,DropdownMenu,CustomSelectControl,Dialog...)
As we introduce new versions of existing components, one of the questions is whether these new components should try to tentatively render in Popover.Slot by default, like the internal Popover component currently does.
This conversation is also related (and a part of):
What is your proposed solution?
After discussing with @youknowriad , we established that we should always try to aim to offer the best possible experience to the consumers of our components — and we both agreed that the best experience is NOT to rely on Popover.Slot, and have our new components render their popovers in a new DOM node in the document.body.
We also discussed how in order to ensure a more coherent behavior between components using the internal Popover component and the new components using ariakit, we should also apply this new behavior to the first-party Popover component. This will likely require a few tweaks around Gutenberg (and a dev note), but we ultimately think that the change is going to result in an improvement of our components library.
Plan of action
- Tweak the
Popovercomponent so that it doesn't render inPopover.Slotby default.- This should be likely achieved by removing the default value of the
slotNameprop. - We should check all usages in the editor for where it's effectively required for
Popoverto render inPopover.Slot(the block toolbar is definitely one such example) - We should check that there are not regressions introduced to how different popover-based UIs stack on top of each other
- We should add a dev note, with an explanation of how to restore the previous behaviour (ie. passing an explicit
slotNameprop toPopover)
- This should be likely achieved by removing the default value of the
- Make sure that all ariakit-based components do not render in
Popover.Slotby default- Rever changes to the new version of DropdownMenu
Activity
ciampo commentedon Sep 3, 2026
Closing as stale / not (entirely) planned.
As we're working on the new
@wordpress/uipackage, refactoring overlays from legacy to the new version will also touch on portals (slots) and z-indexes, in a much wider discourse than just legacy popover.