-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] MacOS/Chrome - Background color is stuck on right click/long press on year in year search #27832
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01790aaa0a663bd0f8 |
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @miljakljajic ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
ProposalPlease re-state the problem that we are trying to solve in this issueWhat is the root cause of that problem?The hover state is not being updated correctly when right-clicking on an element. This is because the What changes do you think we should make in order to solve the problem?To fix the issue and make the hover state active when hovering over another element, you can add an onContextMenu event handler to the PressableWithoutFeedback component. This event handler will update the hoveredDay state to null when a right-click event occurs. and also keep tracking onMouseEnter & Leave to track the hovered state Then on hovered, make the background change
What alternative solutions did you explore? (Optional)Instead of using the
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Background color is stuck on right click/long press on year in year search even on hovering on other value What is the root cause of that problem?Here, we'll show focused background color if the Pressable is focused. When right click and dismiss the context menu, the What changes do you think we should make in order to solve the problem?We should call We can add below this line
The What alternative solutions did you explore? (Optional)NA |
Hi @mallenexpensify, @thesahindia whenever you are available, can you change the reported by to my correct handle? currently I am not getting emails due to it. |
@dhanashree-sawant has reported another issue with the background colour being stuck, I think we should combine the two into one issue? @thesahindia what do you think? https://expensify.slack.com/archives/C049HHMV9SM/p1695223040847299 |
They are 2 different components with different cause I guess. |
@thesahindia I'd be curious for your input here as although they're different components, the behaviour is basically identical, so perhaps there is just one root cause that we can identify here. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The background color of the year list is stuck on a focused/highlighted color when we right-click/long-press it. This happens also on the workspace member page (and many lists). What is the root cause of that problem?The list item on the year page is RadioListItem. In RadioListItem, we set the
So, if the item is focused by right-clicking or long-pressing it, the background color will change to the hovered background color. To remove the hovered effect color, we can press on anywhere. This was previously fixed in #24577 (comment) and #20585, but looks like it gets reintroduced by a bad merge. this issue happens on UserListItem too What changes do you think we should make in order to solve the problem?Remove |
@bernhardoj's proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
We should keep them separated. They are different. |
@thesahindia @bernhardoj I don't think this fixes the issue at the root, the background is not highlighted any more but the option is still focused and if you press enter, it will still select that option (which is confusing to the user because there's no indication that the option will be selected if pressing enter). We should either remove the focus in that case, or keep the focus but also keep the highlight so the user knows what will happen if they press enter. |
To be fair, that happens to every part of the app (except the one that doesn't accept focus). |
I see we fixed it here #24577 |
@MonilBhavsar In this PR #24577, we previously fixed this by removing the We can see here that the removed RadioListItem doesn't have a |
Welp thanks! That makes sense 👍 |
@dukenv0307 sorry I didn't get the concern here regarding expected behavior. The highlighted background displays the option user is currently viewing and about to select. so on pressing enter, it is expected that it will selected, no? |
@MonilBhavsar So there're 2 behaviors in this case:
IMO, either both should be "yes", or both should be "no". But the selected proposal from @bernhardoj will mean 1 is no and 2 is yes. That's why I raised the concern, which combination do you think is correct here? |
It also works like this in other sections of the app, so I'm fine 👍 cc @miljakljajic @mallenexpensify would like to have your opinion on this |
Also fine by me |
@mallenexpensify, @miljakljajic, @MonilBhavsar, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Thanks! We're good to go then 👍 |
📣 @thesahindia Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Just rechecked and it's no longer reproducible as the |
Right! In that case, I think we close this issue? @miljakljajic |
@mallenexpensify @miljakljajic @MonilBhavsar @bernhardoj @thesahindia this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Also unable to reproduce, closing. Comment and/ore reopen if you disagree or if you're able to reproduce |
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:
App should remove background color as soon as we hover on other value
Actual Result:
Background color is stuck on right click/long press on year in year search even on hovering on other value
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.71-8
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: Any additional supporting documentation
background.color.stuck.on.year.search.1.mov
2023-09-19.21.52.17.mov
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant Dattaram Sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695112322258699
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: