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

Use absolute as the default Floating UI strategy #3097

Merged
merged 2 commits into from
Apr 15, 2024

Commits on Apr 12, 2024

  1. set default anchor strategy to absolute

    This is done for 2 reasons:
    
    1. The default strategy in Floating UI was already `absolute`
    2. It can improve performance drastically when using transitions
    
    The main reason we used `fixed` was to ensure that it wasn't
    accidentally positioned to another `relative` element. However, all
    components that use this `FloatingProvider` will also use a portal which
    puts elements in the `<body>` already so this should be safe.
    
    If it is not safe for your application, then you can still use the
    `fixed` strategy.
    RobinMalfait committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    be67bec View commit details
    Browse the repository at this point in the history
  2. update changelog

    RobinMalfait committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    918c302 View commit details
    Browse the repository at this point in the history