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;
|
||||
}
|
||||
to {
|
||||
height: var(--radix-accordion-content-height);
|
||||
height: var(--radix-accordion-content-height, auto);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes accordion-up {
|
||||
from {
|
||||
height: var(--radix-accordion-content-height);
|
||||
height: var(--radix-accordion-content-height, auto);
|
||||
}
|
||||
to {
|
||||
height: 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue