-
Notifications
You must be signed in to change notification settings - Fork 113
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
[Woo POS] Update POS success view design #13969
Conversation
@@ -204,11 +204,12 @@ private extension TotalsView { | |||
.frame(minWidth: UIScreen.main.bounds.width / 2) | |||
}) | |||
.padding(Constants.newOrderButtonPadding) | |||
.foregroundColor(Color.posPrimaryText) | |||
.foregroundColor(.posPrimaryTextInverted) |
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.
I thought about creating a new Button style for this change, but since we only use it once across all flows I opted for the simplest change of creating a new colour.
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
|
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.
@@ -46,12 +46,30 @@ extension Color { | |||
) | |||
} | |||
|
|||
static var posOverlayFillInverted: Color { |
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.
If these colors are only used for the success button, I'm wondering if we should keep them within TotalsView
. WDYT?
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.
Oops, alright I think I need new glasses 😂 that looks very funny. As you mention it didn't show before due to the overlay usage and the button's background matching the view's background. Addressed on c639cc6 by removing the overlay and applying the borders directly to the button's background:
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.
(Pressed save too fast )
- | - |
---|---|
If these colors are only used for the success button, I'm wondering if we should keep them within TotalsView. WDYT?
Agree! Updated on 72fdb6f
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.
Thanks for the fixes!
Closes: #13967
Description
This PR tackles the design review on TfaZ4LUkEwEGrxfnEFzvJj-fi-4665_22771 by:
Testing
RELEASE-NOTES.txt
if necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: