Skip to content

[No QA] Fix Style on FullPageOfflineBlockingView#9269

Merged
Luke9389 merged 8 commits into
mainfrom
luke-style-full-page-offline-ui
Jun 6, 2022
Merged

[No QA] Fix Style on FullPageOfflineBlockingView#9269
Luke9389 merged 8 commits into
mainfrom
luke-style-full-page-offline-ui

Conversation

@Luke9389

@Luke9389 Luke9389 commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

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

Luke9389 commented Jun 1, 2022

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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

@roryabraham roryabraham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM

@johnmlee101 johnmlee101 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Luke9389 commented Jun 1, 2022

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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

Luke9389 commented Jun 1, 2022

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

Perfect, thanks!

@shawnborton

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Comment thread src/styles/variables.js Outdated
iconSizeLarge: 24,
iconSizeXLarge: 28,
iconSizeExtraLarge: 40,
iconSizeMondo: 60,

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Luke9389 commented Jun 6, 2022

Copy link
Copy Markdown
Contributor Author

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

OSBotify commented Jun 6, 2022

Copy link
Copy Markdown
Contributor

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

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

@OSBotify

OSBotify commented Jun 8, 2022

Copy link
Copy Markdown
Contributor

🚀 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.

5 participants