-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for payment 2023-03-31] [$1000] Clicking ctrl+A
in the chat also selects the tooltip
#15924
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
I have no idea what these steps mean so I reached out in the Slack chat https://expensify.slack.com/archives/C049HHMV9SM/p1678684053281919 @kavimuru have you been able to reproduce this? Can you update the steps to reflect how you reproduced it?
|
Got more information on testing in the Slack convo and updated the OP. Going to add |
ctrl+A
in the chat also selects the tooltipctrl+A
in the chat also selects the tooltip
Job added to Upwork: https://www.upwork.com/jobs/~019f7286a4382e4682 |
Current assignee @Christinadobrzyn is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @tylerkaraszewski ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tooltips on the page is currently selectable by Ctrl A. What is the root cause of that problem?We're not preventing user from selecting tooltip's text content. I don't see any case where a tooltip text should be selectable. The tooltip text is only shown when we hover on the element, once we try to click to select any text, the tooltip will disappear. What changes do you think we should make in order to solve the problem?We should apply App/src/styles/getTooltipStyles.js Line 41 in e95b436
In order for the proposed solution to be effective, we'll need to remove the Safari hack mentioned in issue #3613 as well. I have tested this and can confirm that removing the hack will not reintroduce the bug that the hack was originally implemented to fix, using the latest code in the main branch. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tooltips of emotion icons on the chat page is currently selectable by Ctrl-A. What is the root cause of that problem?It's default behavior of the browser, when you press Ctrl-A, it will select all things on current page except elements having attribute Unlucky, the attribute App/src/styles/getTooltipStyles.js Lines 41 to 45 in e95b436
What changes do you think we should make in order to solve the problem?I think about an additional param tooltipTextStyle: {
color: themeColors.textReversed,
fontFamily: fontFamily.GTA,
fontSize: variables.fontSizeSmall,
+ userSelect: textSelectable ? 'unset' : 'none',
} It will give us more control each place we want to disable user-select on the tooltip text. I have checked several design systems, they allow selecting tooltip text by default https://ant.design/components/tooltip What alternative solutions did you explore? (Optional)Another option is we write a HOC with style
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When you use the keyboard shortcut CTRL+A to select the entire chat text, the visible tooltip text is also included in the selection. What changes do you think we should make in order to solve the problem?we can apply the existing Lines 2851 to 2854 in eedd92a
What alternative solutions did you explore? (Optional)N/A |
To clarify my proposal here will also include the variations of the |
@tienifr, I don't think there was any implication at all. @tienifr's proposal was the first but it only mentioned using C+ reviewed 🎀👀🎀 @tylerkaraszewski, please take the final decision. |
Let's use @getusha's proposal. |
@Christinadobrzyn, let's hire and assign @getusha. |
@tylerkaraszewski @thesahindia should i wait to be assigned or raise the PR now? |
📣 @getusha You have been assigned to this job by @Christinadobrzyn! |
Hired @getusha for the fix, @thesahindia as C+, @tienifr as reporter Upwork job - https://www.upwork.com/jobs/~019f7286a4382e4682 |
Thanks @Christinadobrzyn Accepted! @thesahindia @tylerkaraszewski the PR is ready for review! |
ctrl+A
in the chat also selects the tooltipctrl+A
in the chat also selects the tooltip
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.88-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-03-31. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Time for payment! It looks like the PR was created on March 17th and merged on March 20th so that would be a bonus. So payment is: @tienifr reporter $250 Sound correct? |
|
@tylerkaraszewski, @Christinadobrzyn, @getusha, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Regression Test Proposal
Do we agree? |
I think we can skip the first three items in the checklist. We shouldn't call this a regression, it was an edge case that was overlooked during the implementation of tooltip. |
Thanks for the insights! I'll close this without creating a regression test based on @thesahindia's comment. Thanks! |
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:
Expected Result:
Only the text should be highlighted and not the tooltip
Actual Result:
The tooltips are selected
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.83-1

Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
Issue reported by: @tienifr
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678684053281919
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: