Skip to content
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

[core] Remove Floating UI dependency? #528

Closed
oliviertassinari opened this issue Aug 4, 2024 · 3 comments
Closed

[core] Remove Floating UI dependency? #528

oliviertassinari opened this issue Aug 4, 2024 · 3 comments
Labels
core Infrastructure work going on behind the scenes

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 4, 2024

Summary

I expect many developers will ask themselves, why do we need to pay for Floating UI bundle size when the lowest version of the browser we support has the CSS "anchor position" feature available (not true yet): https://developer.chrome.com/blog/new-in-web-ui-io-2024#anchor_positioning.

So I think that having this issue to work toward removing the logic not needed anymore will at worst bring clarity to developers, and at best reduce the library size.

If there are still strong reasons to have Floating UI, then I think:

  • We could have a mode with it, allowing developers to optionally pay the cost
  • Report those limitations to the W3C, they might want to fix them

Examples

Motivation

I'm going through https://developer.chrome.com/blog/new-in-web-ui-io-2024, and reporting all the opportunities that have no issues, so we keep the library at the edge of what's technically possible with today's browsers.

Search keywords: -

@oliviertassinari oliviertassinari added status: waiting for maintainer These issues haven't been looked at yet by a maintainer component: tooltip This is the name of the generic UI component, not the React module! component: popover This is the name of the generic UI component, not the React module! component: Popper labels Aug 4, 2024
@oliviertassinari oliviertassinari changed the title [Popper] Remove Floating UI dependency [Popper] Remove Floating UI dependency? Aug 4, 2024
@mj12albert mj12albert added core Infrastructure work going on behind the scenes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer component: tooltip This is the name of the generic UI component, not the React module! component: popover This is the name of the generic UI component, not the React module! labels Feb 19, 2025
@mj12albert mj12albert changed the title [Popper] Remove Floating UI dependency? [core] Remove Floating UI dependency? Feb 19, 2025
@mj12albert
Copy link
Member

One of the main points in #1246 is to reduce the duplication between Base UI and Floating UI, should we keep this one open? @atomiks @michaldudak

@mj12albert
Copy link
Member

Also related: #454

@mj12albert
Copy link
Member

We discussed this and decided to close this issue as it will likely be 2-3 years or even more before native CSS has parity with the Floating UI features we are using, so there's no need to track this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

No branches or pull requests

4 participants