Skip to content
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

[No QA] Fix Style on FullPageOfflineBlockingView #9269

Merged
merged 8 commits into from
Jun 6, 2022

Conversation

Luke9389
Copy link
Contributor

@Luke9389 Luke9389 commented Jun 1, 2022

Fixes

#9268

Hey Shawn, here are those style fixes.

Here's the current component (I'll update this as we do more fixes):

Screen Shot 2022-06-01 at 8 50 23 PM

@Luke9389 Luke9389 requested a review from a team as a code owner June 1, 2022 10:14
@Luke9389 Luke9389 requested a review from shawnborton June 1, 2022 10:15
@melvin-bot melvin-bot bot requested review from johnmlee101 and removed request for a team June 1, 2022 10:15
@Luke9389 Luke9389 self-assigned this Jun 1, 2022
@Luke9389
Copy link
Contributor Author

Luke9389 commented Jun 1, 2022

@shawnborton
One thing is that the comment you left says the heading should be font size 17 but I've used the fontSizeh1 style which is 19. I'm pretty sure our headings use that size, but I can bump it down to fontSizeLarge: 17 if you prefer. LMK how it looks to you.

@shawnborton
Copy link
Contributor

Hmm, what size do page headers use? That's the size we're using in Figma, which is 17

roryabraham
roryabraham previously approved these changes Jun 1, 2022
Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

Copy link
Contributor

@johnmlee101 johnmlee101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind updating with some basic QA steps?

@johnmlee101
Copy link
Contributor

Also what conversation/issue is this referring to? Does this affect multiple platforms?

@Luke9389 Luke9389 changed the title Fix Style on FullPageOfflineBlockingView [No QA] Fix Style on FullPageOfflineBlockingView Jun 1, 2022
@Luke9389
Copy link
Contributor Author

Luke9389 commented Jun 1, 2022

@johnmlee101 I put the issue in the description. Here's the slack convo: https://expensify.slack.com/archives/C02HWMSMZEC/p1654010563728389

QA is a little tricky at the moment. I've been hardcoding the offline condition to true to test.

@shawnborton Here's the h1 style I used:

h1: {

fontSize: variables.fontSizeh1, is defined here:
fontSizeh1: 19,

Again, totally fine with bumping it down to 17 if it looks too large in the screenshot.

@shawnborton
Copy link
Contributor

I'm not suggesting that we change the h1 style, but rather, just use the same style applied to the page header. Can you tell me more about that? Where do we store a font value as 17, and what do we call it?

@Luke9389
Copy link
Contributor Author

Luke9389 commented Jun 1, 2022

Ahh, OK. We call font size 17 fontSizeLarge.

The titles we use for the pages (like "Connect Bank Account" in the screenshot) use the <Header> component, which does indeed use this. Confusingly, we rename it to textLarge from fontSizelarge here:

fontSize: variables.fontSizeLarge,

OK, so I'll use that style so that they match. 👍
Nice catch!

@shawnborton
Copy link
Contributor

Perfect, thanks!

@shawnborton
Copy link
Contributor

Also, could you please replace offline-cloud.svg with this updated icon? We typically export our icons in all black and with the correct 20x20 bounding box, and I think the existing asset doesn't have either of those.

offline-cloud.svg.zip

@johnmlee101
Copy link
Contributor

Will wait for your final design check @shawnborton before finalizing my review 😄

@@ -36,6 +36,7 @@ export default {
iconSizeLarge: 24,
iconSizeXLarge: 28,
iconSizeExtraLarge: 40,
iconSizeMondo: 60,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does Mondo mean? I wonder if we should name this something more related to the usecase... like iconSizeFullPageOverlay or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about iconSizeSuperDuperLarge?

I don't think we should tie it to the use case because it may be used in a different situation where we aren't doing a full page overlay.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to iconSizeSuperLarge

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point. Another approach we can take is that if we assume a default icon is 20x20, this particular icon is 3x that size.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the current name (iconSizeSuperLarge) is fine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I don't feel strongly but at some point it would be nice to clean up these variable names.

@shawnborton
Copy link
Contributor

Looks good to me! Just left one comment about the icon size variable.

@Luke9389 Luke9389 requested a review from shawnborton June 2, 2022 10:30
@Luke9389
Copy link
Contributor Author

Luke9389 commented Jun 6, 2022

Anything else @johnmlee101?

@Luke9389 Luke9389 merged commit 34ad009 into main Jun 6, 2022
@Luke9389 Luke9389 deleted the luke-style-full-page-offline-ui branch June 6, 2022 17:07
@OSBotify
Copy link
Contributor

OSBotify commented Jun 6, 2022

🚀 Deployed to staging by @Luke9389 in version: 1.1.72-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Jun 8, 2022

🚀 Deployed to production by @yuwenmemon in version: 1.1.73-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants