Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

Add a mechanism that communicates actual positioning strategy used by popup #8

@ccjoel

Description

@ccjoel

My team is in need of some mechanism to verify the actual positioning strategy of the popup (not the suggested one passed as prop, since the popup nicely repositions if the popup would be off screen).

We are thinking that we could add a class to the tw-popup container. It would specify the actual strategy used upon running the strategy function. This way, we could modify our CSS to move around an element (say, a caret for a tooltip) as the popup repositions.

I will definitely try to implement and submit a PR if this is a good solution to our problem. Let me know if there's an alternate approach you guys suggest. You would be merging the PR, after all.

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