You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2025-02-06] [HOLD #54054] When hovering on the button, there is no interaction. #54657
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ReviewingHas a PR in review
Version Number: 9.0.79-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: 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 Expensify/Expensify Issue URL: Issue reported by:@dukenv0307 Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Create a new workspace
Enable workflow -> add approval
Create an expense
Move to search page
Select the expense
Hover Approve button
Expected Result:
Have interaction when hover on button
Actual Result:
When hovering on the button, there is no interaction.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidencebug.1.movRecording.869.mp4
Please re-state the problem that we are trying to solve in this issue.
When hovering on the button, there is no interaction
What is the root cause of that problem?
In the ActionCell component, we are using the Button to display actions like "Approve," "Pay," "Submit," etc. For the button, we pass innerStyles to control the background color. When a row is selected, we conditionally apply styles.buttonSuccessHovered or styles.buttonDefaultHovered. However, the default success hover style of the button is currently aligning with buttonSuccessHovered, which prevents hover interactions from being noticeable.
What changes do you think we should make in order to solve the problem?
To resolve this, we should introduce additional hover styling by using hoverStyles. These styles should include a check for the shouldUseSuccessStyle prop to differentiate between default and success hover states. We can either create new styles for the default and success hover states or reuse existing ones after confirming the background colors with the design team.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
This is a UI issue, and I don’t believe any automated test could effectively prevent this problem.
What alternative solutions did you explore? (Optional)
Altenatively, we can pass the only innerStyles to Button when we have shouldUseSuccessStyle is false, so that when button isSelected is true we pass the default success style to button so that hover issue will not be visible here, on that case we need to pass the hoverStyles for only default button case
Note: Minor change styles can be discussed during the PR phase.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
@luacmartins, based on this comment #53117 (comment), do we need to update the hover styling here on this Issue, or are the changes being addressed in another PR?
changed the title [-]When hovering on the button, there is no interaction.[/-][+][HOLD #54054] When hovering on the button, there is no interaction.[/+]on Dec 30, 2024
@luacmartins@garrettmknight@luacmartins The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ReviewingHas a PR in review
Activity
melvin-bot commentedon Dec 30, 2024
Triggered auto assignment to @garrettmknight (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.jayeshmangwani commentedon Dec 30, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When hovering on the button, there is no interaction
What is the root cause of that problem?
In the
ActionCellcomponent, we are using theButtonto display actions like "Approve," "Pay," "Submit," etc. For the button, we passinnerStylesto control the background color. When a row is selected, we conditionally applystyles.buttonSuccessHoveredorstyles.buttonDefaultHovered. However, the default success hover style of the button is currently aligning withbuttonSuccessHovered, which prevents hover interactions from being noticeable.App/src/components/SelectionList/Search/ActionCell.tsx
Lines 55 to 60 in dae99d1
What changes do you think we should make in order to solve the problem?
To resolve this, we should introduce additional hover styling by using
hoverStyles. These styles should include a check for theshouldUseSuccessStyleprop to differentiate between default and success hover states. We can either create new styles for the default and success hover states or reuse existing ones after confirming the background colors with the design team.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
This is a UI issue, and I don’t believe any automated test could effectively prevent this problem.
What alternative solutions did you explore? (Optional)
Altenatively, we can pass the only
innerStylestoButtonwhen we haveshouldUseSuccessStyleis false, so that when buttonisSelectedis true we pass the default success style to button so that hover issue will not be visible here, on that case we need to pass thehoverStylesfor only default button casedaledah commentedon Dec 30, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When hovering on the button, there is no interaction.
What is the root cause of that problem?
We don't set
hoverStylesfor this button so it will use defaulthoverStyleshereApp/src/components/SelectionList/Search/ActionCell.tsx
Lines 108 to 118 in dae99d1
What changes do you think we should make in order to solve the problem?
We should create a function
getHoverStylesto gethoverStylesas we did with innerStylesAnd use this in this button
And this button
Note: Minor change styles can be discussed during the PR phase.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
jayeshmangwani commentedon Dec 30, 2024
@luacmartins, based on this comment #53117 (comment), do we need to update the hover styling here on this Issue, or are the changes being addressed in another PR?
dukenv0307 commentedon Dec 30, 2024
@garrettmknight I can help take it as C+ since I had the prior context on this. Thanks
garrettmknight commentedon Dec 30, 2024
Let's wait for @luacmartins to confirm that this isn't being handled elsewhere first.
luacmartins commentedon Dec 30, 2024
Let's put this on hold for #54054
[-]When hovering on the button, there is no interaction.[/-][+][HOLD #54054] When hovering on the button, there is no interaction.[/+]16 remaining items
melvin-bot commentedon Jan 30, 2025
@luacmartins @garrettmknight @luacmartins The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Feb 6, 2025
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
luacmartins commentedon Feb 6, 2025
This is fixed in #54054. We can close the issue.