-
Notifications
You must be signed in to change notification settings - Fork 394
Maryia/DTRA-453/fix: Tooltips are not working properly in mobile, require holding i button #11027
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
Maryia/DTRA-453/fix: Tooltips are not working properly in mobile, require holding i button #11027
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| } | ||
| }; | ||
| } | ||
| return undefined; |
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.
reversion of changes from #9562 that caused all popovers (tooltips) in DTrader to require a long tap instead of a single tap.
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.
This is fine.
@suisin-deriv Please take note. The touch events handler should be on its own hook. It should not be related to the use-hover hook.
| <Popover | ||
| alignment='bottom' | ||
| classNameBubble='account-settings-toggle__tooltip' | ||
| message={<Localize i18n_default_text='Manage account settings' />} |
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.
This DefaultMobileLinks component is rendered for mobile only, and we don't need this popover tooltip for binary link to Account Settings in mobile since there is no hover in mobile, and it should redirect immediately as per requirements.
*Note: Even with this popover, it was always working for Android but not for iOS. Hence, removing to have consistent behavior across devices.
| classNameBubble='account-settings-toggle__tooltip' | ||
| alignment='bottom' | ||
| message={<Localize i18n_default_text='View onboarding' />} | ||
| message={!is_mobile && <Localize i18n_default_text='View onboarding' />} |
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.
In mobile, we don't need a popover tooltip for this icon that redirects to Onboarding since there is no hover in mobile, and it should redirect immediately as per requirements.
*Note: Even with this popover, it was always working for Android but not for iOS. Hence, removing to have consistent behavior across devices.
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information. |
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-maryia-deriv-maryia-dtra-453-2popovers-fix.binary.sx/ |
8d64e01 to
7249eb9
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
|
🚀 Smoke test run (2) passed successfully! |








Changes:
Screenshots:
Please provide some screenshots of the change.