-
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
Dev: Money owes preview background color is not changing on hover. #22582
Comments
ProposalPlease re-state the issueMoney owe preview background color is not changing on hover What is the root cause of that problem?There is no hover style to highlight the preview box which is present in split preview. What changes do you think we should make in order to solve this problem?We should just add the hover styles so that the box is highlighted on hover in the following line:
<View style={[styles.iouPreviewBox, props.isHovered ? styles.iouPreviewBoxHover : undefined]}> Just like we do here:
What other alternative approaches did you explore?N/A |
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Request Money ReportPreview's background color does not change on hover. What is the root cause of that problem?When we are rendering App/src/pages/home/report/ReportActionItem.js Lines 247 to 254 in 2e3f8c2
But no such prop even exists in What changes do you think we should make in order to solve the problem?There is no use of <ReportPreview
iouReportID={ReportActionsUtils.getIOUReportIDFromReportActionPreview(props.action)}
chatReportID={props.report.reportID}
action={props.action}
containerStyles={[hovered ? styles.iouPreviewBoxHover : undefined]}
contextMenuAnchor={popoverAnchorRef}
checkIfContextMenuActive={toggleContextMenuFromActiveReportAction}
/> Then in <View style={[styles.iouPreviewBox, ...props.containerStyles]}> P.S. - We can also keep the type of This is consistent with what we are doing for App/src/components/ReportActionItem/MoneyRequestAction.js Lines 142 to 153 in 2e3f8c2
We do pass I noticed one more margin issue in `ReportPreview`. See screenshot -Notice that there is margin before image and before To fix this, we can either also pass What alternative solutions did you explore? (Optional)Alternatively, we can add the Result - Screen.Recording.2023-07-10.at.9.06.57.PM.mov |
@kevinksullivan This issue was solved yesterday in this PR; we can close this issue |
@kevinksullivan Can you please confirm if I am eligible for reporting bonus here, the issue was reported before the PR created |
If the issue was solved elsewhere then we don't pay reporting bonus |
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:
On Hover over the money owes preview message background color of the preview should be changed like the same happens when we hover over on preview on the money details page.
Actual Result:
There is no hover effect happening when hovering over the money owes preview so that the background color of the preview and hover color overlap.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev 1.3.38-4
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
no-hover-effect.mov
Expensify/Expensify Issue URL:
Issue reported by: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688983671141219
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: