The best way to control Claude Code, Codex and more from any computer or phone
fix(web): respect reduced motion in shared disclosures (#10258)
Alex Southwell committed
Sep 6, 2026 at 14:27 UTC
84aebb72f306f17bed680e1241dab9ab8e8df741
1 file changed
+3
-1
apps/web/src/components/ui/collapsible.tsx
+3
-1
@@ -19,10 +19,12 @@ function CollapsibleTrigger({ className, ...props }: CollapsiblePrimitive.Trigge
19
}
20
21
function CollapsiblePanel({ className, ...props }: CollapsiblePrimitive.Panel.Props) {
22
+ // Reuses the local shadcn/Base UI panel; skip height travel for reduced motion.
23
+ // https://ui.shadcn.com/docs/components/base/collapsible
24
return (
25
<CollapsiblePrimitive.Panel
26
className={cn(
25
- "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)]",
27
+ "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)]",
28
className,
29
)}
30
data-slot="collapsible-panel"