Skip to content

Horizontal / cross axis flipping for popovers #8173

@OliverJAsh

Description

@OliverJAsh

Provide a general summary of the feature here

Popovers already support flipping the vertical placement. Should they also support flipping the horizontal placement aka cross axis? That would avoid awkward looking popovers such as this:

Image

Reduced test case: https://stackblitz.com/edit/vitejs-vite-7ahmt11q?file=src%2Fmain.css,src%2FApp.tsx&terminal=dev

I believe Floating UI has this behaviour: https://floating-ui.com/docs/flip#crossaxis

🤔 Expected Behavior?

See above.

😯 Current Behavior

See above.

💁 Possible Solution

See above.

🔦 Context

See above.

💻 Examples

No response

🧢 Your Company/Team

Unsplash

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions