Skip to content

Commit 8b8972d

Browse files
authored
[Woo POS][Design System] Update skeleton design for totals view (#15133)
2 parents ea0b832 + fd99ee1 commit 8b8972d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

WooCommerce/Classes/POS/Presentation/TotalsView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ private extension TotalsView {
135135
Spacer().frame(height: Constants.totalVerticalSpacing)
136136
Divider()
137137
.overlay(Constants.separatorColor)
138+
.renderedIf(!totalsLoading)
138139
Spacer().frame(height: Constants.totalVerticalSpacing)
139140
totalFieldView(formattedPrice: orderTotals?.orderTotal,
140141
shimmeringActive: totalsLoading,
@@ -193,10 +194,9 @@ private extension TotalsView {
193194
}
194195

195196
func shimmeringLineView(width: CGFloat, height: CGFloat) -> some View {
196-
Constants.separatorColor
197+
Color.posOnSurfaceVariantLowest
197198
.frame(width: width, height: height)
198199
.fixedSize(horizontal: true, vertical: true)
199-
.redacted(reason: [.placeholder])
200200
.shimmering(active: true)
201201
.cornerRadius(Constants.shimmeringCornerRadius)
202202
}
@@ -356,10 +356,10 @@ private extension TotalsView {
356356
static let totalAmountFont: POSFontStyle = .posHeading
357357
static let separatorColor: Color = Color.posOutlineVariant
358358

359-
static let shimmeringCornerRadius: CGFloat = 4
360-
static let shimmeringWidth: CGFloat = 334
359+
static let shimmeringCornerRadius: CGFloat = 8
360+
static let shimmeringWidth: CGFloat = 342
361361
static let subtotalsShimmeringHeight: CGFloat = 36
362-
static let totalShimmeringHeight: CGFloat = 40
362+
static let totalShimmeringHeight: CGFloat = 46
363363

364364
/// Used for synchronizing animations of shimmeringLine and textField
365365
static let matchedGeometrySubtotalId: String = "pos_totals_view_subtotal_matched_geometry_id"

0 commit comments

Comments
 (0)