feat(theme): add motion easing tokens and reduced-motion support#6742
Open
benjamincanac wants to merge 2 commits into
Open
feat(theme): add motion easing tokens and reduced-motion support#6742benjamincanac wants to merge 2 commits into
benjamincanac wants to merge 2 commits into
Conversation
Contributor
📝 WalkthroughWalkthroughAdds configurable Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
❓ Type of change
📚 Description
Refines the motion across overlay components and introduces shared, overridable easing tokens.
Motion tokens. Adds two CSS variables in
index.css:--ui-ease-out(cubic-bezier(0.23, 1, 0.32, 1)) drives the enter and exit transitions of overlays, accordion and collapsible.--ui-ease-fluid(cubic-bezier(0.32, 0.72, 0, 1)) is the iOS style curve used by the Slideover slide.Easing fixes. Every overlay was exiting with
ease-in, which starts slow and delays the feedback when the user dismisses. All exits now use the ease-out token so closing feels immediate, and entrances adopt the same token for consistency. The Slideover moves on the fluid curve instead ofease-in-out(no lazy start on open), and the NavigationMenu content panels use ease-out so they no longer linger on exit.Reduced motion. Adds a
prefers-reduced-motionblock inkeyframes.cssthat turns the scale and slide presence animations into simple fades, while keeping the accordion and collapsible height reveal that aids comprehension. Decorative loops (marquee, shimmer, progress, table) were already gated.Docs. Documents the new tokens on the CSS Variables page under a new Easing section.
All changes are non breaking: no props, slots or override APIs change, only animation values and additive tokens. Note the
4.11+version badge on the docs section is a placeholder, adjust it to whichever release ships this.📝 Checklist