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

Add overflow: auto when using the anchor prop #3138

Merged
merged 2 commits into from Apr 25, 2024

Commits on Apr 25, 2024

  1. add overflow auto when using anchor

    We want to constrain the anchored element within the viewport (minus the
    padding if there is some). But without an `overflow: auto`, it would
    overflow and the `maxWidth` / `maxHeight` are a bit pointless.
    
    Once you opt-in to `anchor`, then we have to provide styles anywhere.
    This improves the UX.
    RobinMalfait committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    42964ad View commit details
    Browse the repository at this point in the history
  2. update changelog

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