Skip to content

Commit 5390be9

Browse files
committed
Move shadow style to POSFloatingControlView.
1 parent dd7cd02 commit 5390be9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

WooCommerce/Classes/POS/Presentation/POSFloatingControlView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ struct POSFloatingControlView: View {
7070
.frame(height: Constants.size)
7171
.background(Color.clear)
7272
.animation(.default, value: backgroundAppearance)
73-
.shadow(color: Color.posShadow.opacity(0.05), radius: 43, y: 50)
74-
.shadow(color: Color.posShadow.opacity(0.10), radius: 36, y: 30)
75-
.shadow(color: Color.posShadow.opacity(0.18), radius: 27, y: 15)
76-
.shadow(color: Color.posShadow.opacity(0.20), radius: 15, y: 5)
73+
.posShadow(.large)
7774
}
7875
}
7976

WooCommerce/Classes/POS/Presentation/PointOfSaleDashboardView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ struct PointOfSaleDashboardView: View {
4444
POSFloatingControlView(showExitPOSModal: $showExitPOSModal,
4545
showSupport: $showSupport,
4646
showDocumentation: $showDocumentation)
47-
// TODO: update `POSFloatingControlView` style when PR is merged
48-
.posShadow(.large)
4947
.offset(x: Constants.floatingControlHorizontalOffset, y: -Constants.floatingControlVerticalOffset)
5048
.trackSize(size: $floatingSize)
5149
.accessibilitySortPriority(1)

0 commit comments

Comments
 (0)