-
Notifications
You must be signed in to change notification settings - Fork 683
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
Applied Gift Cards show current balance #2156
Conversation
} | ||
|
||
.balance { | ||
font-size: 0.875rem; |
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.
|
unit test card code | ||
</span> | ||
<span> | ||
Balance: |
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.
There is no balance in these snaps, not even a zero. Expected?
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.
Expected because the value is rendered via the Price
component, which gets mocked here to an empty <div />
(see next line).
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.
Aside from the snaps (maybe) being off, I approve!
@schensley will want to approve as well, methinks.
@supernova-at the implementation looks very good. One fussy thing, the balance could use a little bit more separation for the card number once it has been applied. |
<span> | ||
00 | ||
</span> | ||
</span> |
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.
@sirugh I think this Price
component doesn't get mocked because we requireActual
Peregrine in this .spec.js
. Apparently that will ignore mocks in __mocks__
🤷♂
@schensley , resolved by af7baf6. |
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.
UX approved.
Thnx.
Description
This PR adds current applied gift card balances to the UI to improve the UX.
The balance font size is slightly smaller than the code, so I consulted the Venia Styleguide for its value.
Related Issue
Closes PWA-364.
Acceptance
Verification Stakeholders
Specification
Verification Steps
/cart
pageScreenshots / Screen Captures (if appropriate)
Checklist