Commit ec1b119
committed
fix(DrawerPanelContent): collapse space when drawer collapsed
Closes #11938
Have not tested this against OCP but this fixes the core issue where the drawer panel content still takes up width even when closed.
After this PR, the panel content is still "display"ed but now takes up width 0.
We cannot use `display: none` here as that breaks the drawer opening animation1 parent 263c485 commit ec1b119
File tree
1 file changed
+11
-2
lines changed- packages/react-core/src/components/Drawer
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
375 | 377 | | |
376 | 378 | | |
377 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
383 | 389 | | |
384 | | - | |
385 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
386 | 395 | | |
387 | 396 | | |
388 | 397 | | |
| |||
0 commit comments