Conversation
🦋 Changeset detectedLatest commit: 8cf89d1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Pull request overview
Fixes the accordion open/close animation “pop” by ensuring spacing is included in the animated height and by aligning the content-visibility transition timing with the height transition.
Changes:
- Replaced bottom margin on
.details__contentwithpadding-block-endto avoid margin clipping during height transitions. - Updated
content-visibilitytransition duration to match the height transition duration for smoother close behavior.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/skin/src/sass/accordion/accordion.scss | Updates accordion content spacing + transition timing to prevent abrupt visual shifts during animation. |
| packages/skin/dist/accordion/accordion.css | Regenerated compiled CSS to reflect the SCSS changes. |
LuLaValva
left a comment
There was a problem hiding this comment.
@caseycarroll thanks for this! Can you add a changeset with npm run change? This should be a patch change to skin. Afterwards we'll get this merged!
LuLaValva
left a comment
There was a problem hiding this comment.
Thanks for the super quick changeset! Sorry to leave you hanging for so long 😅
LuLaValva
left a comment
There was a problem hiding this comment.
Oops, looks like some tests failed! Were you able to get tests running locally on your machine?
|
Whoops! I’ll take a look at the tests soon. |
be2f0d4 to
8cf89d1
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #552 +/- ##
=======================================
Coverage ? 56.30%
=======================================
Files ? 1076
Lines ? 8140
Branches ? 1717
=======================================
Hits ? 4583
Misses ? 3193
Partials ? 364 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Replace
margin-block-end: 6px;withpadding-block-end: 6px;on.details__contentto ensure height transition accounts for spacing. Adjust content-visibility transition timing to avoid abrupt shift on close.Notes
I may be missing context around
content-visiblitytransition duration being shorter thanheighttransition duration.Screenshots
before
before.accordion.anim.fix.mov
after
after.accordion.anim.fix.mov
Checklist