-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Remove clipped texts throughout the app when device font size is increased #10060
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
PR Reviewer Checklist
|
@Santhosh-Sellavel I can't produce the first issue on iPhone 13 simulator or Android Pixel 2 emulator. 2nd issue is solved. 3rd issue is solved. |
Try in android device not in simulator |
@osama256 I see in all your PRs work has been done on the |
There are so many unnecessary commits. |
@Santhosh-Sellavel 1st issue solved. here how it looks like on Android Pixel 5 before : after : |
I think this branch is outdated compared to Expensify:main and hence all the weird commits that are showing up. @Santhosh-Sellavel Ready for you once the branch is fixed to show the right changes. |
@osama256 Can you check merge changes properly? |
Updated |
@osama256 It would be better if you follow these steps
It's recommended to leave your fork's cc: @pecanoro |
Details
This PR gives you the ability to increase or decrease the device font size without seeing clipped texts throughout the app.
the App behavior will be :
PixelRatio.getFontScale() * default value > max value ? max value : default value * PixelRatio.getFontScale()
the App font size will not increase because any increasing above this level will show clipped texts throughout the app.Fixed Issues
#7541
Tests
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Screenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
Desktop.mov
iOS
ios.mov
Android
android.mov