Tooltip: consider adding support for rendering in legacy popover slot #56420
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Components
/packages/components
As noted in #47614 (comment), the recent refactor of
Tooltip
introduced a change to where the tooltip's contents render in the page.Prior to the refactor,
Tooltip
was usingPopover
internally, and as a consequence, the tooltip's contents were rendered inside the matching<Popover.Slot />
.After the refactor, the tooltip's contents render in a new dom node added by
ariakit
.As a consequence, we should understand:
Tooltip
component so that it renders in aPopover.Slot
if there is a matching one (and in a new portal as fallback)The text was updated successfully, but these errors were encountered: