Skip to content

Conversation

@RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Apr 25, 2024

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 anyway. This improves the UX.

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.
@vercel
Copy link

vercel bot commented Apr 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 3:12pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 3:12pm

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

Successfully merging this pull request may close these issues.

3 participants