Skip to content

Commit dc6e20b

Browse files
authored
[Woo POS][Design System] Update cash payment CTA bottom padding to respect safe area (#15169)
2 parents aae0ac7 + 04966a5 commit dc6e20b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleDashboardView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ struct PointOfSaleDashboardView: View {
3333
case .content:
3434
contentView
3535
.accessibilitySortPriority(2)
36-
.ignoresSafeArea(edges: .bottom)
3736
}
3837
} else {
3938
PointOfSaleUnsupportedWidthView()
@@ -45,6 +44,7 @@ struct PointOfSaleDashboardView: View {
4544
showSupport: $showSupport,
4645
showDocumentation: $showDocumentation)
4746
.offset(x: Constants.floatingControlHorizontalOffset, y: -Constants.floatingControlVerticalOffset)
47+
.padding(.bottom, Constants.floatingControlBottomPadding)
4848
.trackSize(size: $floatingSize)
4949
.accessibilitySortPriority(1)
5050
.renderedIf(posModel.itemsViewState.containerState != .loading)
@@ -100,7 +100,6 @@ struct PointOfSaleDashboardView: View {
100100
CartView()
101101
.accessibilitySortPriority(1)
102102
.frame(width: geometry.size.width * Constants.cartWidth)
103-
.ignoresSafeArea(edges: .bottom)
104103
}
105104

106105
if posModel.orderStage == .finalizing {
@@ -168,6 +167,7 @@ private extension PointOfSaleDashboardView {
168167
// For the moment we're just considering landscape for the POS mode
169168
// https://github.com/woocommerce/woocommerce-ios/issues/13251
170169
static let cartWidth: CGFloat = 0.35
170+
static let floatingControlBottomPadding: CGFloat = 16
171171
static let floatingControlHorizontalOffset: CGFloat = 16
172172
static let floatingControlVerticalOffset: CGFloat = 0
173173
static let exitPOSSheetMaxWidth: CGFloat = 900.0

WooCommerce/Classes/POS/Presentation/TotalsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ private extension TotalsView {
363363
static let pricesIdealWidth: CGFloat = 382
364364
static let verticalSpacing: CGFloat = 56
365365
static let buttonHorizontalPadding: CGFloat = 48
366-
static let cashButtonBottomPadding: CGFloat = 24
366+
static let cashButtonBottomPadding: CGFloat = 16
367367

368368
static let totalsLineViewPadding: EdgeInsets = .init(top: 20, leading: 24, bottom: 20, trailing: 24)
369369
static let subtotalsVerticalSpacing: CGFloat = 8

0 commit comments

Comments
 (0)