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

Wrapping Text inside Tooltip or Pressable make the text vertically misaligned on native - reported by @Tushu17 #9242

Closed
mvtglobally opened this issue May 31, 2022 · 9 comments
Assignees
Labels
Daily KSv2 Needs Reproduction Reproducible steps needed

Comments

@mvtglobally
Copy link

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


Action Performed:

  1. Go to ReportWelcomText.js file
  2. Wrap the Text inside Tooltip or Pressable
    <Text style={[styles.textStrong]}>
    {displayName}
    </Text>
  3. Open a chat with someone and check the welcome message

Expected Result:

It shouldn't get misaligned

Actual Result:

It gets misaligned

Workaround:

unknown

Platform:

Where is this issue occurring?

  • iOS
  • Android

Version Number:
Reproducible in staging?: need repro
Reproducible in production?: need repro
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Simulator Screen Shot - iPhone 13 - 2022-04-28 at 00 03 17

Expensify/Expensify Issue URL:
Issue reported by: @Tushu17
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1651084914620279

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 Needs Reproduction Reproducible steps needed labels May 31, 2022
@melvin-bot
Copy link

melvin-bot bot commented May 31, 2022

Triggered auto assignment to @sakluger (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label May 31, 2022
@Tushu17
Copy link
Contributor

Tushu17 commented May 31, 2022

@chiragsalian, do we wanna fix this for pressable as we already handled the case for tooltip?

@sakluger
Copy link
Contributor

sakluger commented Jun 1, 2022

I can't reproduce this by starting a new group chat on mobile:

image

@mvtglobally when would this scenario happen in real life?

@chiragsalian
Copy link
Contributor

I'm also unable to reproduce on dev, staging or production.
I don't get the action steps nor why would we need to do that, if we modify code there is a high chance things won't work as expected. If there is a reason to modify the code then the place where the code is modified should address fixing this alignment.

do we wanna fix this for pressable as we already handled the case for tooltip?

@Tushu17, for my understanding whats the benefit on Pressable onPress={() versus Text onPress={()?

@Tushu17
Copy link
Contributor

Tushu17 commented Jun 3, 2022

In a PR earlier we were facing problem when we tried wrapping the text inside pressable or tooltip so you asked us(here) to report it on slack but we have already found a solution and wrapping text inside tooltlip works fine so I don't think we need it.

@melvin-bot melvin-bot bot added the Overdue label Jun 6, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 7, 2022

@sakluger, @mvtglobally Eep! 4 days overdue now. Issues have feelings too...

@chiragsalian
Copy link
Contributor

Ah cool cool, yeah i think when you earlier mentioned it i thought it was a bug on staging/prod. Since a solution was found we don't need this issue and we can close it out, correct?

@sakluger
Copy link
Contributor

sakluger commented Jun 8, 2022

Yeah I'm going to close. @mvtglobally could you please reopen if we still need it and let us know what still needs to be fixed? Thanks!

@sakluger sakluger closed this as completed Jun 8, 2022
@melvin-bot melvin-bot bot removed the Overdue label Jun 8, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 8, 2022

@sakluger Be sure to fill out the Contact List!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Needs Reproduction Reproducible steps needed
Projects
None yet
Development

No branches or pull requests

4 participants