We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e21e21d commit c8c7442Copy full SHA for c8c7442
WooCommerce/Classes/POS/Presentation/Reusable Views/Buttons/POSButtonStyle.swift
@@ -41,6 +41,8 @@ struct POSButtonStyle: ButtonStyle {
41
// Makes the entire area tappable, otherwise the area with clear background is not tappable.
42
.contentShape(Rectangle())
43
.cornerRadius(POSButtonStyleConstants.framedButtonCornerRadius)
44
+ .opacity(configuration.isPressed ? 0.7 : 1.0)
45
+ .animation(.easeOut(duration: 0.15), value: configuration.isPressed)
46
}
47
48
private var backgroundColor: Color {
0 commit comments