Skip to content

Commit 871a794

Browse files
committed
Update secondary button for cash payment in totals view to POSButtonStyle(variant: .outlined, size: .normal).
1 parent 49a2c2b commit 871a794

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

WooCommerce/Classes/POS/Presentation/TotalsView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ struct TotalsView: View {
6565
}, label: {
6666
Text(Localization.cashPaymentButtonTitle)
6767
.font(POSFontStyle.posBodyEmphasized)
68-
.foregroundColor(.posPrimaryText)
69-
.frame(height: Constants.buttonHeight)
7068
.minimumScaleFactor(0.5)
7169
})
72-
.buttonStyle(SecondaryButtonStyle())
70+
.buttonStyle(POSButtonStyle(variant: .outlined, size: .normal))
7371
.padding(.horizontal, Constants.buttonHorizontalPadding)
7472
.padding(.bottom, Constants.cashButtonBottomPadding)
7573
.renderedIf(viewHelper.shouldShowCollectCashPaymentButton(orderState: posModel.orderState,
@@ -345,7 +343,6 @@ private extension TotalsView {
345343
enum Constants {
346344
static let pricesIdealWidth: CGFloat = 382
347345
static let verticalSpacing: CGFloat = 56
348-
static let buttonHeight: CGFloat = 56
349346
static let buttonHorizontalPadding: CGFloat = 48
350347
static let cashButtonBottomPadding: CGFloat = 16
351348

0 commit comments

Comments
 (0)