-
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
[Awaiting Payment 29th April] [$250] Web - Category - No hover effect for an already selected category #39716
Comments
Triggered auto assignment to @lschurr ( |
@lschurr I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is no hover effect when hovering selected category. What is the root cause of that problem?The category picker page uses SelectionList. The BaseListItem won't show the hover effect if the item is selected.
That's why there is no hover effect on the selected item even after we move away the item focus. What changes do you think we should make in order to solve the problem?Instead of check whether the item is selected or not, we should check whether the item is focused or not.
or just remove the selected condition |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is no hover effect when hovering selected category. What is the root cause of that problem?In
What changes do you think we should make in order to solve the problem?We should remove Update hoverStyle={!item.isDisabled && [styles.hoveredComponentBG, hoverStyle]} Note: We also need to make few more changes like adding type in Resulthover_issue_category_picker.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~0135176cb3aeb0eafc |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
Hi @jayeshmangwani! Looks like we have a few proposals already. Could you please review when you get a chance? Thanks! |
Thanks for the proposals @bernhardoj @Krishna2323. I also feel we should remove the |
The existing behaviour for the list items is if the list item is selected, we will not show the default hover effect ( For this issue, the proposal is to remove the condition Right now, on the workspace categories page, when we select any category, it will show the background color to After removing the If the List item is selected, then the background color will be Adding videos below, before and after of this change: It looks like this:before.movAfter this change, it will look like this:after.mov@shawnborton We will need your suggestions on whether we should remove the condition of the list selected. |
@jayeshmangwani, can you pls check my proposal, it won't change the behaviour of the workspace list |
@Krishna2323 I have checked your proposal, but I feel that we should remove the is selected condition. Let's wait for the design team, and if we don’t want to change the existing behaviour of the categories list, then we can go with other proposals. |
Hmm I would be curious for the @Expensify/design team's thoughts here. It sounds like the problem is that when a row in a table is selected, it doesn't have any kind of hover style. I'm not super convinced that's a major problem, but if we were to solve it, I would just make sure even a selected row would get our rowHover background color when you hover over it, which I think is basically the second video in @jayeshmangwani's comment here. |
I agree with Shawn. Not totally convinced it's a problem, but agree with this solution if we deem we should change it. Also, why does the keyboard highlight use the "selected" color state instead of just the "hover" color state? |
@dannymcclain I'm not sure why it was added, but I am tagging the @luacmartins and @burczu as this is coming from this PR and In that PR, we are setting it not to show the hover background color if the list item is selected. |
We assumed that was the expected behavior. Happy to change it if we decide to show the hover effect on a selected item. |
This comment was marked as outdated.
This comment was marked as outdated.
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
I believe our concern is to avoid changing the background on hover if an item is already focused or selected and has a background applied. However, the issue arises when there is no hover style applied to an item that doesn't have any background and is selectable. To observe this, try removing the focus from the selected category/option using the up/down arrow. issue_hover_bg.mp4 |
Yup, that makes sense. I'd be down to fix that particular case. |
I'm fine with fixing that case too, but I don't feel too strongly. |
I actually think what we have here is working well. If there's already a background on a selected item, then don't do a hover style. If there isn't one, then use it. So I'm okay with this |
Okay cool, sounds like design team agrees: let's move forward with @Krishna2323's idea here. @Krishna2323 - you might need to update your proposal to recapture the problem statement and solution though. |
@jayeshmangwani, can you pls check #39716 (comment) and review my proposal again? |
Commenting to remove overdue since this one is still moving. |
@Krishna2323's proposal will work if we have to add a hover effect to only those selected list items that have no background color. @luacmartins , if we agree on this, then we can proceed with the proposal. |
📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@jayeshmangwani, PR ready for review. |
@lschurr, PR was deployed to production on 22nd April, this is ready for the payments process. Sorry |
Easily done! :) |
Thanks for the bump on this one! Payment summary:
|
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.60-1
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
There should be a hover effect visible for the selected category as is the case for the selected tag
Actual Result:
There is no hover effect for the selected category after the focus has shifted from it which is different from the behavior seen for the selected independent tag value
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6438413_1712305224995.bandicam_2024-04-05_11-19-57-298.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: