Skip to content

[FEAT REQ] Render tooltips inside portal #1163

Open
@viveleroi

Description

@viveleroi

Rendering tooltips inside a portal would resolve issues caused position absolute/fixed. Fixed works in most cases, but some libraries like Storybook use transform/scale on their story containers which counts as a new "container" for position: fixed elements. This causes the tooltip to render incorrectly in auto-generated storybook documents because the x/y are based in the viewport, but the container is no longer the viewport. The tooltips appear at incorrect locations and often cause overflow/scrolls in storybook.

Rendering in portals is a common solution to this, our context/dropdown menu and select input libraries use this for rendering the menus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestV6It might get fixed/merged before, but most likely only on V6's release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions