Commit 74fa846
committed
refactor(collapsible-section): use more custom css props to control animations
Using a private custom CSS prop for controlling grid-template-rows,
not only makes the code better structured, but also
enables internal components to dynamically expand or collapse
the body element, without actually collapsing the section using
its props. This will be used in follow up commits.1 parent 46f08e7 commit 74fa846
File tree
1 file changed
+11
-17
lines changed- src/components/collapsible-section
1 file changed
+11
-17
lines changedLines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 152 | | |
157 | | - | |
| 153 | + | |
158 | 154 | | |
159 | 155 | | |
160 | | - | |
| 156 | + | |
161 | 157 | | |
162 | 158 | | |
163 | | - | |
164 | | - | |
| 159 | + | |
| 160 | + | |
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
168 | 164 | | |
169 | 165 | | |
170 | 166 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
177 | 172 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 173 | + | |
| 174 | + | |
181 | 175 | | |
182 | 176 | | |
183 | 177 | | |
| |||
0 commit comments