-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Change modal border radius to 16px #43627
Conversation
@shawnborton Just checked. Looks like there is enough padding. Does this look fine? |
Technically not quite - I think it should have the same about of vertical padding as the border radius value. So it should probably be bumped from 12px to 16px padding. |
Sounds good to me! |
Yeah that would make sense, though it looks like we have a lot more border radius variables in code than we do in Figma:
So I suppose if it's using one of those variables it's not the end of the world. But it makes sense to give that the same border radius as all the other modals, so I'd be in favor of that change. |
Nice, cleaning those up would be a good follow up project for sure. |
I didn't change the padding on the full screen modal. I have only changed the border radius. There is no real padding style, what I was referring to as "padding" is the remaining space, it was always 15.5px. Do I have to change anything here? |
Ah, no. The only change there would be for the border radius of the outer shape of the modal. |
@shawnborton Regarding the bottom docked modal
What about the padding? It's 12px now, should I bump this to 16px as well? |
I think that makes sense, especially when the bottom-docked modal just has menu options in it. |
Looks great to me. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari43267-web-safari-001.mp4MacOS: Desktop43267-desktop-001.mp4Android: Native43267-android-native-001.mp4Android: mWeb Chrome43627-mweb-chrome-001.mp4iOS: Native43267-ios-native-001.mp4iOS: mWeb Safari43267-mweb-safari-001.mp4 |
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.
Thanks @s77rt. Changes LGTM. I have uploaded the test videos as part of checklist.
Leaving few NAB comments though which we may want to take up along with the changes here as part of the follow-up project.
- We may want to use the variable
componentBorderRadiusLarge
here too. - Since the feature training modal would have a border radius of
componentBorderRadiusLarge
, I am wondering if the border-radius for onboarding video player here also can becomponentBorderRadiusLarge
instead of 12.
Below is a screenshot of the same for reference.
cc @shawnborton
@rojiphil I think we may want to leave that video player alone—I'll let @shawnborton weigh in too, but since we have a border radius on the modal and a border around the video, we need to visually compensate to make the two look like they share the same border radius. |
For that onboarding modal, can you confirm that the border radius in question is the outer border radius of the entire modal, or the inner border radius of the video? I think what we have there is working fine though, so I would also opt to just leave it alone. |
That's the border radius of the video player as seen here and has nothing to do with the border radius of the entire modal. So leaving it alone seems to be the consensus here. |
Code changes make sense to me, will leave it to @shawnborton to confirm that the style changes are as expected. |
Going to run a test build now to make sure everything looks good. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Cool, going to merge this! |
Why do we have this marked as |
Going to change the PR title. |
✋ 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/shawnborton in version: 9.0.1-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.1-19 🚀
|
@Expensify/design
Details
Fixed Issues
$ #42716
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop