fix(web): respect reduced motion in shared disclosures (#10258)

This commit is contained in:
Alex Southwell authored and GitHub committed 2026-09-05 21:27:34 -07:00
1 parent ab67795dde
commit 84aebb72f3
1 file changed
+3 -1
+3 -1
View File
@@ -19,10 +19,12 @@ function CollapsibleTrigger({ className, ...props }: CollapsiblePrimitive.Trigge
}
function CollapsiblePanel({ className, ...props }: CollapsiblePrimitive.Panel.Props) {
// Reuses the local shadcn/Base UI panel; skip height travel for reduced motion.
// https://ui.shadcn.com/docs/components/base/collapsible
return (
<CollapsiblePrimitive.Panel
className={cn(
"h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 data-ending-style:h-0 data-starting-style:h-0 data-open:data-ending-style:[height:var(--collapsible-panel-height)]",
"h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 motion-reduce:transition-none data-ending-style:h-0 data-starting-style:h-0 data-open:data-ending-style:[height:var(--collapsible-panel-height)]",
className,
)}
data-slot="collapsible-panel"