Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Accordion transitions are happening when the accordion is initially open #18493

Open
2 tasks done
kglickman opened this issue Jan 31, 2025 · 0 comments
Open
2 tasks done

Comments

@kglickman
Copy link

Package

@carbon/react

Browser

Chrome

Package version

1.72.0

React version

18.3.1

Description

In this PR #17418, a fix was done to restore animation to the Accordions. The problem is that the transitions are happening when the accordion is initially open, not only when the user intentionally opens it. We have "pages" where we have accordions with a lot of content and they are open by default. The transition is jarring when this happens when the component first loads, particularly if the user is changing between one component with accordions to another.

Here is a video that demonstrates the issue

Screen.Recording.2025-01-31.095800.mp4

Reproduction/example

You can reproduce this in the storybook if you set the initial accordion to be open.

Steps to reproduce

See above about the storybook.

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant