codegouvfr / codegouvfr/react-dsfr

[COMPONENT - ACCORDION] Cumulative shift layout caused by animation

Open
#459 1 comment 0 reactions 1 assignee Claimed by @enguerranws View on GitHub
Dominant language
TypeScript
Stars
496
Forks
99
Avg merge
15h 36m
Merged PRs (30d)
4

Description

Hello,

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?

Thanks!

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.