Repository navigation
fix(reduceMotion): apply final state immediately without start-state flash - #5300
EnesKartal wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Found potential problems with the pull request:
|
|
Thanks! 6.0 now takes only regressions and major bugs, so this is on the 6.1.0 milestone and gets its review after 6.0.0. Could you add before and after screenshots or a short video in the meantime? |
2d31410 to
2ca1fb0
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Summary
reduceMotionis active inCrossFadeIcon,Drawer.CollapsedItem, andBottomNavigation.Barso the first rendered frame already matches the end state:CrossFadeIcon: avoid keepingpreviousIconand snapfade.value = 0instead of running a 0 mswithTiming.Drawer.CollapsedItem: assignoutlineScale.valuedirectly to1/0.5whenreduceMotionis enabled.BottomNavigation.Bar: updatetabsAnimsviasetValuedirectly inanimateToIndexwhenreduceMotionis enabled instead of scheduling a 0 msAnimated.parallel.CrossFadeIcon.test.tsxto verify immediate switching withoutwithTimingwhenreduceMotion="on".Verification
npx eslint src/components/CrossFadeIcon.tsx src/components/Drawer/DrawerCollapsedItem.tsx src/components/BottomNavigation/BottomNavigationBar.tsx src/components/__tests__/CrossFadeIcon.test.tsx(0 errors)npx jest src/components/__tests__/CrossFadeIcon.test.tsx src/components/__tests__/Drawer/DrawerCollapsedItem.test.tsx src/components/__tests__/BottomNavigation.test.tsx(3 suites passed, 41 passed / 1 pre-existing skipped, 19/19 snapshots)npx tsc --noEmit(0 errors)Fixes #5298