feat(tokens): add motion.easing.settle - #3884
Conversation
🦋 Changeset detectedLatest commit: 4d0ffd4 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 |
|
🤖 Slash AI Review has been triggered. View execution logs |
|
(Review Cancelled - Superseded by a new run) |
| exit: Easing.bezier(0.17, 0, 1, 1), | ||
| standard: Easing.bezier(0.3, 0, 0.2, 1), | ||
| emphasized: Easing.bezier(0.5, 0, 0, 1), | ||
| settle: Easing.bezier(0.32, 0.72, 0, 1), |
There was a problem hiding this comment.
🟠 [MAJOR] · code-quality-critique · confidence: 9/10
Problem: Native theme snapshot not regenerated — settle easing entry is missing from createTheme.native.test.tsx.snap (both easing blocks at lines ~1533 and ~3675), while the web snapshot was correctly updated. Native createTheme tests will fail.
Suggestion: Run yarn test:react-native -u (or manually add "settle": "0.32 0.72 0 1" after each "overshoot" entry in the native snapshot) to regenerate the native snapshot.
9636485 to
2d502ea
Compare
|
(Review Cancelled - Superseded by a new run) |
🛡️ Coverage ReportSummaryFull Coverage Details |
There was a problem hiding this comment.
✨ Agentic PR Review ✨
Status: Approved ✅
UI Review
Usage
import { useTheme } from '@razorpay/blade';
const { theme } = useTheme();
// Access the new easing token
theme.motion.easing.settle; // 'cubic-bezier(0.32, 0.72, 0, 1)' on web, EasingFactoryFn on nativeCo-authored-by: admin <admin>
|
🤖 Slash AI Review has been triggered. View execution logs |
Description
Adds one easing curve,
motion.easing.settle—cubic-bezier(0.32, 0.72, 0, 1).For surfaces that grow, reflow, or settle into place: a composer expanding, a bar entering, chips reflowing. It leaves quickly and decelerates hard into its final position, which is what makes a resize read as arriving somewhere rather than easing to a stop.
Groundwork only — nothing in this PR consumes it. Kept separate because both
ChatComposerandChatFeedbackwant it, so it shouldn't sit behind either component's review.Changes
motion.easing.settleon the global motion tokensbladeLightTheme.native.tsregeneratedAdditional Information
Second of a stack of four. Based on #3883 for a clean diff; it has no logical dependency on it and can be retargeted to
masterif #3883 lands first.Component Checklist
🤖 Generated with Claude Code