Closed sghoweri closed 8 years ago
Paging Dr. Frost, paging Dr. @bradfrost. If this PR is good let me know. I'll merge locally and cut a release. Same goes for #27.
Thanks @sghoweri but this is a bit outside my purview to address.
Hey @sghoweri, thanks so much for pointing this bug out! I've been shifting a bunch of styles around, so I rolled in your flex: 1 1 auto;
fix throughout the style sheet. Thanks again!
The default
flex: 1
shorthand behavior causes the accordion-like panels to remain collapsed and unusable, even when toggled open. Explicitly setting the flex-basis properly to auto (vs the 0 default) fixes the issue.Haven't dug deep into it but I suspect the flex-basis shorthand default value + the initial calculated height of 0 (when collapsed) may be part of the underlying cause: https://github.com/philipwalton/flexbugs