-
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
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 👍 |
@@ -241,7 +241,7 @@ const createTooltipStyleUtils: StyleUtilGenerator<GetTooltipStylesStyleUtil> = ( | |||
|
|||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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.
Please run prettier
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.
LGTM and tests well
🎯 @rayane-djouah, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #55568. |
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.
@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 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
Screen.Recording.2025-01-18.at.5.13.51.AM.mov