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

Added tooltip for the communications link #6140

Merged
merged 2 commits into from
Nov 3, 2021

Conversation

akshayasalvi
Copy link
Contributor

Details

Fixed Issues

$ #5542

Tests

  1. Tested with long emails
  2. Tested for mobile layouts to ensure nothing breaks

QA Steps

  1. Navigate to a conversation with a user that has a long email
  2. Open the user detail page
  3. Hover the cursor over the email and you should see a tooltip

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Screenshot 2021-11-01 at 2 57 31 PM

Mobile Web

NA

Desktop

Screenshot 2021-11-01 at 3 06 36 PM

iOS

NA

Android

NA

@akshayasalvi akshayasalvi requested a review from a team as a code owner November 1, 2021 09:38
@MelvinBot MelvinBot requested review from thienlnam and removed request for a team November 1, 2021 09:38
@@ -2052,6 +2052,10 @@ const styles = {
height: 20,
},

communicationsLinkText: {
width: 320,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am strictly against using the fixed width. I would prefer to keep the app flexible (using flexbox) as much as possible.

Any special purpose for using this?

@@ -52,7 +53,13 @@ const CommunicationsLink = props => (
>
{props.children}
</Pressable>
) : props.children}
) : (
<Tooltip text={props.value}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. It works but it takes away flexibility that comes with props.children. This tooltip should be passed with children.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay got it. I'll add a separate prop for Tooltip.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think better would be to pass the tooltip with children

@akshayasalvi
Copy link
Contributor Author

@parasharrajat PR updated

Copy link
Member

@parasharrajat parasharrajat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

All yours, @thienlnam .

Copy link
Contributor

@thienlnam thienlnam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you both

@thienlnam thienlnam merged commit 8ccf3b1 into Expensify:main Nov 3, 2021
@OSBotify
Copy link
Contributor

OSBotify commented Nov 3, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Nov 4, 2021

🚀 Deployed to staging by @thienlnam in version: 1.1.13-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @Jag96 in version: 1.1.14-4 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@ogumen
Copy link

ogumen commented Nov 21, 2021

Accessibility issue found in this PR:

  1. The tooltip bubble cannot be dismissed or hovered without moving mouse pointer - failure of WCAG SC 1.4.13, similar to [low] Hover: Many Pages: Tooltip on hover cannot be dismissed or hovered without moving mouse #5683
    https://user-images.githubusercontent.com/88733897/142771959-cbcc6ac7-19db-4db8-a92f-88e87e29c1dc.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants