Skip to content

Popovers should render in a portal #873

Closed

Description

@w33ble

Currently, popovers only render inline, and there's no way to get around it. This can lead to weird issues with the container's overflow and z-index. Here's one example:

screenshot 2018-05-24 12 08 14

Wrapping the panel code in a portal would fix this, though you'd have to handle the positioning based on the button component's position.

react-bootstrap does this correctly:

screenshot 2018-05-24 14 48 42

Activity

  1. snide commented on May 24, 2018

    @snide
    Contributor

    It's on our near term roadmap to make all of our popovers utilize EuiPortal and a shared position system. The tooltips are this way already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions