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

[$250] Menu - The font size (menu text) does not respond to resizing #46902

Closed
1 of 6 tasks
lanitochka17 opened this issue Aug 6, 2024 · 60 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 6, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.17-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): sustinov@applausemail.com
Issue reported by: Applause - Internal Team

Issue found when executing PR #46707

Action Performed:

Change the font size in OS to the maximum font size. In Chrome settings (Accessibility), increase text scaling to maximum

  1. Open in Chrome https://staging.new.expensify.com/
  2. Log in with any login
  3. Navigate to the settings
  4. Navigate to About
  5. Navigate through the different menus
  6. Watch the font size

Expected Result:

Text size in mWeb(Chrome) app partially does not resize
The text size in mWeb(Chrome) app should react to the increase in size.

Actual Result:

The font size (menu text) does not respond to resizing

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6563533_1722960178879.Record_2024-08-06-20-43-41.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c57c6c3405a2d684
  • Upwork Job ID: 1821663436717148240
  • Last Price Increase: 2024-09-19
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 6, 2024
Copy link

melvin-bot bot commented Aug 6, 2024

Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

@johncschuster FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@FitseTLT
Copy link
Contributor

FitseTLT commented Aug 6, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

he font size (menu text) does not respond to resizing

What is the root cause of that problem?

We need to set the font size via getValueUsingPixelRatio like here

fontSizeSmall: getValueUsingPixelRatio(11, 17),
fontSizeExtraSmall: 9,

and in all places where we gave static font size it will not rescale. for instance in initial settings page we have given static font here

App/src/styles/index.ts

Lines 2848 to 2849 in 0e46257

fontSize: 13,
...FontUtils.fontFamily.platform.EXP_NEUE,

What changes do you think we should make in order to solve the problem?

We need to set the font size via getValueUsingPixelRatio every where we need

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Aug 8, 2024
@johncschuster johncschuster added the External Added to denote the issue can be worked on by a contributor label Aug 8, 2024
@melvin-bot melvin-bot bot changed the title Menu - The font size (menu text) does not respond to resizing [$250] Menu - The font size (menu text) does not respond to resizing Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01c57c6c3405a2d684

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)

Copy link

melvin-bot bot commented Aug 9, 2024

📣 @muhammad-r39! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@muhammad-r39
Copy link

Contributor details
Your Expensify account email: muhammadrussell39@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/muhammadrussell

Copy link

melvin-bot bot commented Aug 9, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@saowwapark
Copy link

saowwapark commented Aug 9, 2024

Contributor details
Your Expensify account email: saowwapark.chanwigoon@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~012348c9a4780fd260?mp_source=share

By default, the font-size in React is pixel unit which is static unit. To change the size depending on accessibility control please change it to be rem unit. It is a convention to use rem unit for font size in modern web application.

The real problem is to change from pixel to rem throughout the project is rather cumbersome. You have to decide whether which method you prefer between ...

  1. Setting root font size (Not recommended)
html {
    font-size: 62.5%;
}

.paragraph-font-size {
    /* The font size for default is 18px. */
    font-size: 1.8rem;
}

If you want the size 18px, you have to set it to be 1.8rem.

  1. CSS variable (Recommended)
html {
    --18px: 0.875rem
}

.paragraph-font-size {
    /* The font size for default is 18px. */
    font-size: var(--18px);
}

In my opinion, you can use media query and set font size like below instead of getValueUsingPixelRatio() :

@media (xx >= width <= xx) {
    --fs-300: clamp(0.94rem, calc(0.92rem + 0.08vw))
    --fs-400: clamp(1.13rem, calc(1.06rem + 0.33vw))
}

@media (yy >= width <= yy) {
    --fs-300: clamp(?rem, calc(?rem + ?vw))
    --fs-400: clamp(?rem, calc(?rem + ?vw))
}

Copy link

melvin-bot bot commented Aug 9, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

Copy link

melvin-bot bot commented Aug 12, 2024

@johncschuster, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Aug 12, 2024
@situchan
Copy link
Contributor

@saowwapark Can you please familiarize yourself with our codebase and some old proposals on closed issues to understand what is expected in a proposal?

@melvin-bot melvin-bot bot removed the Overdue label Aug 12, 2024
@situchan
Copy link
Contributor

We need to set the font size via getValueUsingPixelRatio every where we need

@FitseTLT thanks for the proposal. can you please list all places? The test branch is fine.

@FitseTLT
Copy link
Contributor

We need to set the font size via getValueUsingPixelRatio every where we need

@FitseTLT thanks for the proposal. can you please list all places? The test branch is fine.

@situchan It looks like the problem is specific to mWeb and don't think my RCA is correct.

Copy link

melvin-bot bot commented Aug 15, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Aug 15, 2024
Copy link

melvin-bot bot commented Aug 16, 2024

@johncschuster, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!

@shubham1206agra
Copy link
Contributor

I think all font sizes on that screen should react to the increase in size. It feels weird to me as well that the headline isn't changing.

@dubielzyk-expensify Can you tell me how we decide the upper bound of these fonts? Is that chosen randomly, or is there a method to decide on this?

@dubielzyk-expensify
Copy link
Contributor

I'm not 100% sure actually. I would check the rest of that screen and stop the font-size when the rest is stopping.

I think for a headline on that screen specifically I'd stop at around 40px.

I'm making a note for the future to start defining this stuff 👍 Thanks for calling it out and asking 😄

Copy link

melvin-bot bot commented Sep 3, 2024

@johncschuster @situchan this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@johncschuster
Copy link
Contributor

I think we're waiting for a bit of clarification on this one, Melv.

Copy link

melvin-bot bot commented Sep 5, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Sep 6, 2024
@johncschuster
Copy link
Contributor

Bumping this to keep Melvin happy. It looks like we're waiting on a proposal to be accepted.

@melvin-bot melvin-bot bot removed the Overdue label Sep 6, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@johncschuster
Copy link
Contributor

Thanks for the retest!

@melvin-bot melvin-bot bot removed the Overdue label Sep 9, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Sep 12, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

Copy link

melvin-bot bot commented Sep 13, 2024

@johncschuster, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!

@situchan
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 16, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Third week)

@melvin-bot melvin-bot bot added the Overdue label Sep 21, 2024
@situchan
Copy link
Contributor

OP needs updated to meet #46902 (comment) on all platforms

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 23, 2024
@johncschuster
Copy link
Contributor

Updated

2024-09-25_14-13-06

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2024
@johncschuster
Copy link
Contributor

It seems like this may be resolved though. I'm going to close this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Status: No status
Development

No branches or pull requests