Add fallback value for accordion content height CSS variable
• Improve CSS robustness • Prevent undefined height values
This commit is contained in:
parent
2d9334d35f
commit
44f51f883f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue