-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: aligned the spacing for the FeatureTraining, 2FA, FocusMode, DecisionModal, and ConfirmModal #61181
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
fix: aligned the spacing for the FeatureTraining, 2FA, FocusMode, DecisionModal, and ConfirmModal #61181
Conversation
a37f086
to
77d4980
Compare
@hoangzinh Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-01.at.19.32.14.android.movAndroid: mWeb ChromeScreen.Recording.2025-05-01.at.20.46.50.android.chrome.moviOS: HybridAppScreen.Recording.2025-05-01.at.20.44.31.ios.moviOS: mWeb SafariScreen.Recording.2025-05-01.at.20.45.53.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2025-05-01.at.19.25.08.web.movMacOS: DesktopScreen.Recording.2025-05-01.at.19.32.14.android.mov |
@linhvovan29546 can you update the PR title to reflect what we're fixing here? The current PR title has a large scope. |
I've updated it, does the title look correct now? |
Look good. I found that the changes you made also affect |
|
I think the confirmation here #61181 (comment) is important. Let's wait for them. |
Hi @Expensify/design team. Could you please help confirm the comment above^ #61181 (comment) In this PR, I used a bottom spacing of 20px. However, in other places—such as the ConfirmModal below, we use 36px (The spacing is the same as the top). Just want to ensure we're aligned on the correct spacing value |
I just looked over the app to find a more appropriate example, but I now see that it looks like all the confirmation modals have the wrong padding at the top: This looks like a regression of sorts to me or are my eyes fooling me @Expensify/design ? This is the measurements we use in Figma for confirmation modals on desktop and mobile: |
It's also worth mentioning that the modals outlined in the example in this comment are actually 3 separate and different modals than the confirmation modal so they will follow slightly different paddings. |
Good eye Jon, I agree it seems like we're dealing with a regression here and we should try to align with what we have in Figma. As for mobile's bottom padding, I think the idea is that we always use a standard 20px + whatever the SafeSpace is that we need depending on the platform? cc @blazejkustra who has been making lots of modal changes recently, perhaps you have an idea what's going on here? |
Good callout! I checked whether our recent updates to bottom modals caused this regression, but it turns out they’re not related.
For the As for the confirm modal (which hasn’t been migrated yet — see this PR). I suspect margin is applied in multiple places and the final amount it > 20px. It doesn’t appear to be a recent regression. Most likely it had this amount of margin for a while already. |
Okay cool, thanks for confirming! |
What’s the next step here? Should we update the spacing in the |
That would be my vote, yup. We should make these all consistent. |
@shawnborton I've updated the spacing in the |
Can do! |
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Let us know when new screenshots/videos are ready to review as well. |
The screenshots/videos have already been updated. #61181 (comment) |
Nice, feeling good to me 👍 |
Thank you all for the design review! @hoangzinh Could you do another review round? Thanks! |
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.
LGTM. Tested again on new changes
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.1.42-0 🚀
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.1.43-5 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.44-8 🚀
|
Explanation of Change
In this PR, we aligned the spacing for the FeatureTraining, 2FA, DecisionModal, and ConfirmModal to a consistent 20px.
Fixed Issues
$ #60779
PROPOSAL: #60779 (comment)
Tests
Precondition: Create a new Expensifail account on Web.
We should also test other bottom modals such as the Focus Mode modal, the Two-Factor Authentication Required modal, Confirm modal. Please refer to the screenshot for more details.
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2025-05-06.at.21.22.41.mov
Android: mWeb Chrome
Uploading Screen Recording 2025-05-06 at 21.22.41.mov…
iOS: Native
Screen.Recording.2025-05-06.at.21.25.23.mov
iOS: mWeb Safari
Screen.Recording.2025-05-06.at.21.26.51.mov
MacOS: Chrome / Safari
Screen.Recording.2025-05-06.at.21.20.22.mov
MacOS: Desktop
Screen.Recording.2025-05-06.at.21.28.57.mov