Add fallback value for accordion content height CSS variable

• Improve CSS robustness
• Prevent undefined height values
This commit is contained in:
yangdx 2025-10-12 01:46:58 +08:00
parent 2d9334d35f
commit 44f51f883f

View file

@ -121,13 +121,13 @@
height: 0; height: 0;
} }
to { to {
height: var(--radix-accordion-content-height); height: var(--radix-accordion-content-height, auto);
} }
} }
@keyframes accordion-up { @keyframes accordion-up {
from { from {
height: var(--radix-accordion-content-height); height: var(--radix-accordion-content-height, auto);
} }
to { to {
height: 0; height: 0;