Eliminate need for clip-path on .s-expandable
#1142
Labels
bug
A reproducible problem with the Stacks code
component
help-wanted
Issues a person would like or needs help with
We use the
clip-path
property on.s-expandable
to allow for height animations. Lately, it seems like more trouble than it's worth, as it affects stacking contexts in undesirable ways. We should consider ditching the animation (and theclip-path
property we use here) altogether in favor of a simpledisplay: none/block
.If we're feeling ambitious, we could do a top-to-bottom rewrite of
.s-expandable
to either a) find a better CSS-based approach to animatingheight: 0/auto
or b) animate height using JS.From MDN:
This codepen illustrates the stacking context issue: https://codepen.io/dc-so/pen/QWmJBmz?editors=1000
The text was updated successfully, but these errors were encountered: