Skip to content

Commit ac3c0e0

Browse files
committed
Add shadow layers to product card border modifier based on design.
1 parent 5dd6465 commit ac3c0e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ struct POSItemCardBorderStylesModifier: ViewModifier {
88
.stroke(Color.black, lineWidth: Constants.nilOutline)
99
}
1010
.clipShape(RoundedRectangle(cornerRadius: Constants.cardCornerRadius))
11+
.shadow(color: Color.posShadow.opacity(0.04), radius: 12, x: 0, y: 8) // First shadow layer (0px 8px 24px 0px #0000000A)
12+
.shadow(color: Color.posShadow.opacity(0.08), radius: 4, x: 0, y: 2) // Second shadow layer (0px 2px 8px 0px #00000014)
1113
}
1214
}
1315

0 commit comments

Comments
 (0)