Skip to content

Commit 7718b0e

Browse files
set contentShape to all content in SUButton
1 parent 49bd397 commit 7718b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComponentsKit/Components/Button/SUButton.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ private struct CustomButtonStyle: SwiftUI.ButtonStyle {
124124
configuration.label
125125
.font(self.model.preferredFont.font)
126126
.lineLimit(1)
127-
.contentShape(.rect)
128127
.padding(.horizontal, self.model.horizontalPadding)
129128
.frame(maxWidth: self.model.width)
130129
.frame(height: self.model.height)
130+
.contentShape(.rect)
131131
.foregroundStyle(self.model.foregroundColor.color)
132132
.background(self.model.backgroundColor?.color ?? .clear)
133133
.clipShape(

0 commit comments

Comments
 (0)