Skip to content

Commit e21e21d

Browse files
committed
Fix button area with clear background not tappable.
1 parent ce9c721 commit e21e21d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WooCommerce/Classes/POS/Presentation/Reusable Views/Buttons/POSButtonStyle.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ struct POSButtonStyle: ButtonStyle {
3838
.background(backgroundColor)
3939
.foregroundColor(foregroundColor)
4040
.overlay(borderOverlay)
41+
// Makes the entire area tappable, otherwise the area with clear background is not tappable.
42+
.contentShape(Rectangle())
4143
.cornerRadius(POSButtonStyleConstants.framedButtonCornerRadius)
4244
}
4345

0 commit comments

Comments
 (0)