You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[COMPONENT - ACCORDION] Cumulative shift layout caused by animation #459
Even though I'm using the Accordion component in a controlled way, the open/close animation remains, where the documentation says it does not. This causes bad performance upon page load & display, specifically on the CLS metric.
Is there a way to simply disable any animation on this component whatever the way I'm using it?
Can you provide an example of a controlled mode accordion where the animation remains?
Well, I just checked the storybook, I think that's a mistake in the documentation : Accordion should always have an animation, since it's a CSS transition and react-dsfr is simply using original CSS provided by the DSFR. We need to update the doc accordingly.
Activity
enguerranws commentedon Dec 16, 2025
Can you provide an example of a controlled mode accordion where the animation remains?
Well, I just checked the storybook, I think that's a mistake in the documentation : Accordion should always have an animation, since it's a CSS transition and react-dsfr is simply using original CSS provided by the DSFR. We need to update the doc accordingly.