-
Notifications
You must be signed in to change notification settings - Fork 927
Update RTL transitions to go the correct direction #6166
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
Conversation
| onDimNavBarRequest: (Boolean) -> Unit, | ||
| ) { | ||
| composable<GeneratorRoute.Standard> { | ||
| composableWithRootPushTransitions<GeneratorRoute.Standard> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also noticed that this screen did not have the right transitions applied.
|
Claude finished @david-livefront's task —— View job Code Review: RTL TransitionsOverall Assessment: APPROVE This PR correctly addresses RTL transition direction issues by replacing directional APIs with layout-aware ones. The changes are well-executed with proper naming consistency. Key ChangesFinding 1: Transition naming improved from The renaming from directional terms (left/right) to layout-aware terms (start/end) is excellent. Documentation now correctly describes both the origin and direction:
💭 Documentation clarity considerationThe parenthetical "(left)" and "(right)" in comments are LTR-centric. While helpful for most developers, they technically describe LTR behavior only. In RTL layouts, "start" is right and "end" is left. Consider: /**
* Slides the new screen in from the layout start towards the layout end.
* In LTR: left → right. In RTL: right → left.
*/This is minor since the current docs are clear enough, but it would be more technically precise. Finding 2: API migration from The change from offset-based APIs to direction-based APIs is correct: Before (RTL-unaware): slideInHorizontally(initialOffsetX = { fullWidth -> -fullWidth / 2 })After (RTL-aware): slideIntoContainer(
towards = AnimatedContentTransitionScope.SlideDirection.Start,
initialOffset = { fullWidth -> fullWidth / 2 }
)The Finding 3: GeneratorNavigation.kt now uses proper transition wrapper Changed from plain Verification✓ All references to old naming ( |
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6166 +/- ##
=======================================
Coverage 84.99% 84.99%
=======================================
Files 723 723
Lines 52854 52854
Branches 7676 7676
=======================================
Hits 44925 44925
Misses 5246 5246
Partials 2683 2683 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks @SaintPatrck |

🎟️ Tracking
N/A
📔 Objective
This PR updates the screen transitions to be push in the correct direction when the using an RTL language.
Transition names were updated to reflect this change.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes