Skip to content

Commit 582cc99

Browse files
committed
Move floating control shadow from dashboard view to control view.
1 parent ebd00cb commit 582cc99

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

WooCommerce/Classes/POS/Presentation/POSFloatingControlView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ struct POSFloatingControlView: View {
5959
.frame(height: Constants.size)
6060
.background(Color.clear)
6161
.animation(.default, value: backgroundAppearance)
62+
.shadow(color: Color.posShadow.opacity(0.05), radius: 43, y: 50)
63+
.shadow(color: Color.posShadow.opacity(0.10), radius: 36, y: 30)
64+
.shadow(color: Color.posShadow.opacity(0.18), radius: 27, y: 15)
65+
.shadow(color: Color.posShadow.opacity(0.20), radius: 15, y: 5)
6266
}
6367
}
6468

WooCommerce/Classes/POS/Presentation/PointOfSaleDashboardView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ struct PointOfSaleDashboardView: View {
4242

4343
POSFloatingControlView(showExitPOSModal: $showExitPOSModal,
4444
showSupport: $showSupport)
45-
.shadow(color: Color.black.opacity(0.12), radius: 4, y: 2)
4645
.offset(x: Constants.floatingControlHorizontalOffset, y: -Constants.floatingControlVerticalOffset)
4746
.trackSize(size: $floatingSize)
4847
.accessibilitySortPriority(1)

0 commit comments

Comments
 (0)