style-guide icon indicating copy to clipboard operation
style-guide copied to clipboard

Accordion plays expand animation on first render causing layout shifts

Open coderitual opened this issue 2 years ago • 0 comments

Rendering accordion component for the first time (on mount) when some of the elements are expanded by default, results in playing "expand" animation on them. Expected behaviour is to render expanded items on mount without animation even without reduced motion property set.

Current behaviour causing layout shift CleanShot 2022-03-24 at 13 30 27

coderitual avatar Mar 24 '22 13:03 coderitual