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

Updating transition duration during toggleAccordion #225

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

brianphamPC
Copy link
Contributor

@brianphamPC brianphamPC commented Aug 27, 2024

Currently when there is a lot of content height for the accordion to render, it takes a long time to show and close all the data
In this PR we are capping the time to 1 second to expand and close all the data
In Luke's example, the height of the content was about 12,000px, video example is also about 12,000px.
The scroll bar also increases and decreases faster which indicates better for the the user that the accordion is indeed expanding/closing

Screen.Recording.2024-08-27.at.1.14.59.PM.mov

(I couldn't get a large data monitoring data set on dev so I hardcoded the data in the video)

Copy link

github-actions bot commented Aug 27, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link

sonarcloud bot commented Aug 28, 2024

@brianphamPC brianphamPC marked this pull request as ready for review August 28, 2024 17:52
@brianphamPC brianphamPC merged commit 2276585 into master Aug 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants