-
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
Emoji overlaps the word above #54207
Conversation
src/styles/index.ts
Outdated
@@ -1748,7 +1748,7 @@ const styles = (theme: ThemeColors) => | |||
|
|||
emojisWithTextFontSizeAligned: { | |||
fontSize: variables.fontSizeEmojisWithinText, | |||
marginVertical: -7, | |||
marginBottom: -7, |
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.
Can you show a before/after of this change in terms of how it affects a non-Android platform? Just want to make sure we're still getting expected behavior.
This issue is pointed out somewhere, for example here and here. ![]() So we have to use margin to align the emoji. If we use I also tried to use ![]() So we can use |
We can do the trade off here, it should be fine to be not center for some weird icons instead of overlapping the text |
@shawnborton @getusha @VickyStash Please tell me what you think. Thanks |
@dominictb have you considered making your updates only for android? |
Okay, I think the solution is not viable then. We want this to behave basically exactly like it currently does on the non-Android platforms. |
I see our target in the PR is to enlarge the emoji (17), but still keep the size of text is 15, so the line height can be too big ![]() but If we use ![]() |
@VickyStash @shawnborton @getusha I updated the PR to fix this issue on Android and iOS Summary: remove marginVertical: -7 For iOS use lineHeight: 24 to fix the overlap issue: ![]() Result: ![]() ![]() |
One of the requirement from @shawnborton during PR implementation was not to change |
We definitely do not want to change the line height of normal blocks of paragraph text. |
Alright, I think the scope of this issue is to fix the issue on Android so I'll handle the fix for Android only. What do you think @VickyStash @getusha? |
@getusha @shawnborton Can you please take a look? We just need to test the issue on Android only. I keep other platform behavior as before.
|
I think that looks pretty good to me. Curious what others think too. |
Seems pretty good to me? |
What's the latest on this one? Are we good to get this merged soon? Thanks! |
Yeah I think this looks good to me too |
Reviewer Checklist
Screenshots/Videos |
Seems like the unit test is not fixed |
@getusha, Can you take a look at the recent changes? 🙏 |
@getusha Friendly bump! |
The list issue is fixed after merging main |
@getusha Friendly bump! |
The changes are the same as the moment of this comment: #54207 (comment) |
Ok, i think it looks better now. what do you think @pecanoro? |
cc @shawnborton |
@shawnborton Can you check #54207 (comment)? |
Oh I could have sworn I left a comment on this. I see the comment above, but can we see it side-by-side with web? I feel like the screenshot above feels slightly squished. |
+1 |
@shawnborton I think it's the current behavior on iOS, and based on this comment, we just need to fix on Android. For iOS issue we should handle separately since it has the different root cause. cc @getusha |
Hmm I am a bit lost I suppose. But sure, if we think we want to handle that separately, we can. @pecanoro I'm starting to think that we might want to ask one of our expert agencies to tackle all of these emoji issues holistically. I feel like we keep doing these patches that just lead to more regressions, it might be nice to tackle this all together once and for all. We can still get this PR over the finish line, but I think we're just going to keep running into these little issues. |
@shawnborton Sounds good @getusha @dominictb Let's update the screenshots in all platforms for the current behaviour to make sure we didn't cause any further issues and once we are sure it's fine, let's merge the PR. |
@pecanoro Sure, will update soon |
Updated all screenshots |
@getusha All yours now, can we have a final round of testing? |
Having trouble building for android, my connection isn't working properly today (too slow) 😢 |
@getusha Did you test the rest of the platforms and update the screenshots? |
Updated screenshots in other platforms |
✋ 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/pecanoro in version: 9.0.99-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.99-2 🚀
|
Explanation of Change
Fixed Issues
$ #53451
PROPOSAL: #53451 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop