Skip to content

Commit 4e8eff4

Browse files
authored
docs: use css variable for collapsed height in animations (#2742)
1 parent bf3ecd2 commit 4e8eff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/data/components/collapsible.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Use CSS animations to animate the collapsible when it expands and collapses. The
112112
```css
113113
@keyframes expand {
114114
from {
115-
height: 0;
115+
height: var(--collapsed-height, 0);
116116
}
117117
to {
118118
height: var(--height);
@@ -124,7 +124,7 @@ Use CSS animations to animate the collapsible when it expands and collapses. The
124124
height: var(--height);
125125
}
126126
to {
127-
height: 0;
127+
height: var(--collapsed-height, 0);
128128
}
129129
}
130130

0 commit comments

Comments
 (0)