Skip to content

Horizontal / cross axis flipping for popovers #8173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
OliverJAsh opened this issue May 1, 2025 · 1 comment
Open

Horizontal / cross axis flipping for popovers #8173

OliverJAsh opened this issue May 1, 2025 · 1 comment

Comments

@OliverJAsh
Copy link

OliverJAsh commented May 1, 2025

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

@devongovett
Copy link
Member

Seems like a reasonable feature to support. Though to be totally honest, we're hoping not to do too much work on our overlay positioning code and instead move to native CSS anchor positioning in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants