-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 breadcumbs font auto scaling #36655
Conversation
@shawnborton @Ollyws One of you needs to 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] |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
cc @Expensify/design for review too @dukenv0307 this seems fine from your screenshots, but hard to tell. What happens when you scale the device font size to be quite larger as well? |
Cool, we should probably fix that case as I'm sure it will come up in a future bug report 🤣 |
cc: @dukenv0307 |
@Ollyws I just updated code, please check again. android-resize.mp4 |
@shawnborton what do you think, not sure if there is any ideal solution here |
Yeah... this is where I think we should cap the amount that the font should grow. I have no idea if that breaks any kind of accessibility rule, but at some point we simply can't fit any kind of text in the available space with a font size that large. |
@dukenv0307 is it possible to cap the font size somehow? |
@Ollyws this is my device when the text size turned up to it's maxiumum on iOS
|
If we want to cap the font size, we can pass the value to |
@dukenv0307 I think that would be great! @shawnborton what font size do we want to allow as max? |
I'd be curious to see a couple of different options here. Personally I think even just 2-3x the normal font size there would be a good cap? Also, are we able to get the wordmark to scale proportionally with the font size too? |
@dukenv0307 can you provide couple screenshots of these sizes? Also will this be fixed by your changes? https://expensify.slack.com/archives/C01GTK53T8Q/p1709063185695719 I dont think so |
@mountiny Yes, it can be fixed by my changes in this PR |
Can we see it with a max multiplier of something like 1.5? The 2 and 3 cases seem like this particular text is so much larger than say the chat rows below it. |
I understand, but it is supposed to look like text and I think it should scale along with the font size adjustments. |
Yeah, this is actually exactly what we want. They need to look proportional next to each other. I think what you've mentioned is a clever solution so I recon that's the way to go @dukenv0307 |
Currently, we use ios-resize.mp4@shawnborton @dubielzyk-expensify what do you think? |
That feels pretty good to me. And then when the font is set to a normal/default size, how does it look? |
Yeah same as Shawn. That's looking pretty good to me from those two settings at least. Perhaps do a few and upload as screenshots so we can see a few more variations? |
Here are some variations @shawnborton @dubielzyk-expensify
|
Cool, I just want to make sure the default iOS text setting doesn't scale up/down the wordmark or text in any way. Can you confirm that when you get a moment? Thanks! |
@shawnborton i confirm this |
Sounds good, thanks! |
Ok I think we are all set up then @Ollyws would you be able to complete the checklist? |
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari06_MacOS_Desktop.mp4MacOS: DesktopMacOS_Safari.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.
LGTM.
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 everyone
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ 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/mountiny in version: 1.4.51-0 🚀
|
not an emergency |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.51-3 🚀
|
Details
Fixed Issues
$ #35785
PROPOSAL: #35785 (comment)
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
MacOS: Desktop