Skip to content

Commit b727822

Browse files
committed
Update color and related design in modal after design confirmation.
1 parent ac3c0e0 commit b727822

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

WooCommerce/Classes/POS/Presentation/Reusable Views/POSModalViewModifier.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ struct POSRootModalViewModifier: ViewModifier {
99
func body(content: Content) -> some View {
1010
ZStack {
1111
content
12-
.blur(radius: modalManager.isPresented ? 3 : 0)
12+
.blur(radius: modalManager.isPresented ? 8 : 0)
1313
.disabled(modalManager.isPresented)
1414
.accessibilityElement(children: modalManager.isPresented ? .ignore : .contain)
1515

1616
if modalManager.isPresented {
17-
Color.posSurfaceContainerLowest.opacity(0.6)
17+
Color.posSurfaceContainerLowest.opacity(0.8)
1818
.edgesIgnoringSafeArea(.all)
1919
.onTapGesture {
2020
if modalManager.allowsInteractiveDismissal {
@@ -27,7 +27,10 @@ struct POSRootModalViewModifier: ViewModifier {
2727
modalManager.getContent()
2828
.background(Color.posSurfaceBright)
2929
.cornerRadius(24)
30-
.shadow(color: Color.black.opacity(0.08), radius: 24, x: 0, y: 8)
30+
.shadow(color: Color.posShadow.opacity(0.02), radius: 43, x: 0, y: 50) // 0px 50px 43px 0px #00000005
31+
.shadow(color: Color.posShadow.opacity(0.04), radius: 36, x: 0, y: 30) // 0px 30px 36px 0px #0000000A
32+
.shadow(color: Color.posShadow.opacity(0.07), radius: 27, x: 0, y: 15) // 0px 15px 27px 0px #00000012
33+
.shadow(color: Color.posShadow.opacity(0.08), radius: 15, x: 0, y: 5) // 0px 5px 15px 0px #00000014
3134
.padding()
3235
}
3336
.zIndex(1)

0 commit comments

Comments
 (0)