-
Notifications
You must be signed in to change notification settings - Fork 3.5k
update: Scrollable feature training modal styles to support narrow layout #78959
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
base: main
Are you sure you want to change the base?
update: Scrollable feature training modal styles to support narrow layout #78959
Conversation
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.
Pull request overview
This PR fixes a scrolling issue in the Feature Training Modal (including the "Welcome to New Expensify" banner) on mobile and narrow layouts by applying a maximum height constraint to enable proper scrolling.
Key Changes:
- Added a new
shouldUseMaxHeightparameter togetScrollableFeatureTrainingModalStylesto applymaxHeight: '100dvh'on narrow layouts - Updated
FeatureTrainingModalto pass theshouldUseNarrowLayoutflag to the style utility function
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/styles/utils/index.ts |
Added shouldUseMaxHeight parameter to getScrollableFeatureTrainingModalStyles function to enable maxHeight constraint on narrow layouts in addition to mobile Chrome |
src/components/FeatureTrainingModal.tsx |
Passes shouldUseNarrowLayout to the style utility function and updates useMemo dependencies accordingly |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| () => (shouldUseScrollView ? StyleUtils.getScrollableFeatureTrainingModalStyles(insets, isKeyboardActive, shouldUseNarrowLayout) : {}), | ||
| [shouldUseScrollView, StyleUtils, insets, isKeyboardActive, shouldUseNarrowLayout], |
Copilot
AI
Jan 6, 2026
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.
The new scrolling behavior for narrow layouts is not covered by tests. Consider adding a test case that verifies the shouldUseScrollView prop works correctly with shouldUseNarrowLayout and that the appropriate styles are applied when the modal is rendered in a narrow layout. This would help ensure the scrolling fix for the migration modal works as expected across different viewport sizes.
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
The issue indeed not within the scope of ours. So, should we ask QA to create a separate issue with clear requirements and expectations. |
|
Well this change enables scrolling on web when the modal is rendered in a narrow layout. |

Explanation of Change
Fixed Issues
$ #78597
PROPOSAL: #78597 (comment)
Tests
Precondition:
Onyx.merge('nvp_tryNewDot', {nudgeMigration: {timestamp: Date.now()}})OR
https://dev.new.expensify.com:8082/auto-submit
https://dev.new.expensify.com:8082/onboarding/explanation
https://dev.new.expensify.com:8082/onboarding/migrated-user-welcome
https://dev.new.expensify.com:8082/onboarding/test-drive
https://dev.new.expensify.com:8082/change-workspace-educational
https://dev.new.expensify.com:8082/track-training
Test:
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
macOS.Chrome.mov