You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new Tailwind v4 @container class adds a container-type: inline-size rule for container queries, that breaks Radix HoverCard position calculation in Chrome 129+, due to this browser "fix":
Hover over the HoverCard demo at v4.shadcn.com. Remove the @container class or add contain-layout on the demo container div, and try again to see the correct behavior.
System Info
Chrome 129+
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues
The text was updated successfully, but these errors were encountered:
So if I am understanding this correctly we always will want the class contain-layout on the HoverCard component, I can open a PR to add this to the v4 HoverCard
… container-type behavior
Wraps the HoverCard component with a div having the class "contain-layout" to address the container-type behavior issue causing it to break in v4.
Fixesshadcn-ui#6875
Description
The new Tailwind v4
@container
class adds acontainer-type: inline-size
rule for container queries, that breaks Radix HoverCard position calculation in Chrome 129+, due to this browser "fix":floating-ui/floating-ui#3067 (comment)
Affected component/components
HoverCard, possibly others
How to reproduce
Hover over the HoverCard demo at v4.shadcn.com. Remove the
@container
class or addcontain-layout
on the demo container div, and try again to see the correct behavior.System Info
Before submitting
The text was updated successfully, but these errors were encountered: