Update educational tooltip style to conditionally apply pointer events #55440
Conversation
8746dc4 to
b45d352
Compare
|
@arosiclair Please 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] |
|
All good from a design perspective 👍 |
| // We are adding this to prevent the tooltip text from being selected and copied on CTRL + A. | ||
| ...styles.userSelectNone, | ||
| ...styles.pointerEventsNone, | ||
| ...(!isEducationTooltip ? styles.pointerEventsNone : {}), |
There was a problem hiding this comment.
It seems styles.pointerEventsNone was added in this PR to address this issue. Could you please add a brief comment explaining why styles.pointerEventsNone is necessary for tooltips and why it should be excluded for educational tooltips?
There was a problem hiding this comment.
with this pointerEventsNone tooltip is not clickable, we need to make it clickable thats why, also it needed because team wants to see in full story user sessions how users are interacting with tooltips with pointerEventsNone its not clickable and fullstory can detect clicks
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariBefore:Screen.Recording.2025-01-21.at.12.17.36.AM.movAfter:Screen.Recording.2025-01-21.at.7.17.11.PM.movMacOS: DesktopBefore:Screen.Recording.2025-01-21.at.12.34.17.AM.movAfter:Screen.Recording.2025-01-21.at.7.18.36.PM.mov |
Co-authored-by: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com>
|
🎯 @rayane-djouah, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #55568. |
rayane-d
left a comment
There was a problem hiding this comment.
@puneetlath / @arosiclair all yours!
|
✋ 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/puneetlath in version: 9.0.89-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
@puneetlath
Explanation of Change
Fixed Issues
$ https://expensify.slack.com/archives/C07NMDKEFMH/p1737144412340509?thread_ts=1736855166.456579&cid=C07NMDKEFMH
PROPOSAL:
Tests
Offline tests
QA Steps
same as test steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Screen.Recording.2025-01-18.at.5.13.51.AM.mov