-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix styling on payment details page in mobile view. #9790
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +201 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
…payments-details-mobile-view' of github.com:Automattic/woocommerce-payments into fix/7230-payments-details-mobile-view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mostly looks good to me @shendy-a8c 🌟
I noticed that this introduced a bit of a glitchy case for ~685px width viewports, when the transaction status is Disputed: needs response
. The USD wraps under and the status chip is awkwardly aligned.
Aside from that ☝️ this is looking good on my phone:
.dispute-notice-link { | ||
display: block; | ||
} | ||
} | ||
|
||
@media screen and ( max-width: $break-small ) { | ||
.wcpay-inline-notice.components-notice | ||
.components-notice__content | ||
a.dispute-notice-link { | ||
white-space: normal; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ for consistency, should this new classname follow BEM-naming?
.dispute-notice-link { | |
display: block; | |
} | |
} | |
@media screen and ( max-width: $break-small ) { | |
.wcpay-inline-notice.components-notice | |
.components-notice__content | |
a.dispute-notice-link { | |
white-space: normal; | |
} | |
.dispute-notice__link { | |
display: block; | |
} | |
} | |
@media screen and ( max-width: $break-small ) { | |
.wcpay-inline-notice.components-notice | |
.components-notice__content | |
a.dispute-notice__link { | |
white-space: normal; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 13db0c1.
.payment-details-summary__amount_wrapper { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
@media screen and ( max-width: $break-small ) { | ||
.payment-details-summary__amount_wrapper { | ||
flex-direction: column; | ||
align-items: flex-start; | ||
|
||
.payment-details-summary__status { | ||
order: -1; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ Similarly, for consistency with BEM, I suggest we use -
in amount-wrapper
rather than _
.
.payment-details-summary__amount_wrapper { | |
display: flex; | |
align-items: center; | |
} | |
@media screen and ( max-width: $break-small ) { | |
.payment-details-summary__amount_wrapper { | |
flex-direction: column; | |
align-items: flex-start; | |
.payment-details-summary__status { | |
order: -1; | |
} | |
} | |
} | |
.payment-details-summary__amount-wrapper { | |
display: flex; | |
align-items: center; | |
} | |
@media screen and ( max-width: $break-small ) { | |
.payment-details-summary__amount-wrapper { | |
flex-direction: column; | |
align-items: flex-start; | |
.payment-details-summary__status { | |
order: -1; | |
} | |
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 13c3890.
Thank four for the review @Jinksi.
I fixed this.
Now it looks better. Before: Screen.Recording.2024-12-03.at.04.02.19.movAfter: Screen.Recording.2024-12-03.at.04.03.30.mov |
* develop: Remove payout timing notice and update the help tooltip. (#9812) Fix styling on payment details page in mobile view. (#9790) Prevent browser error on dispute evidence submission (#9847) Update inquiry order notes to use inquiry specific content (#9828) Restrict Stripe Link to credit card payment method and improve cleanup (#9822)
Fixes #7230
Changes proposed in this Pull Request
In my local, the pill does not overflow like shown in the screenshot of the original issue.
Before:
After:
I have to re-arrange the elements. I group the transaction amount and currency and move the
PaymentStatusChip
andDisputeStatusChip
.I also added
className
prop forPaymentStatusChip
andDisputeStatusChip
so I can target them in CSS selector.Before:
After:
Testing instructions
Make sure desktop view does not change due to these PR changes.
Make sure in mobile view, the status chips is located at the top.
Make sure desktop view does not change due to these PR changes.
Make sure in mobile view, the status chips is located at the top.
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge