PWD-1: revert button changes

This commit is contained in:
Markus Thielker 2025-01-21 16:06:14 +01:00
parent 4887f42b1f
commit bb4cb2a0d3
No known key found for this signature in database

View file

@ -17,7 +17,7 @@ struct PwdButton<Label: View>: View {
var action: () -> Void var action: () -> Void
var body: some View { var body: some View {
Button(action: action) { HStack{
label label
} }
.buttonStyle(PlainButtonStyle()) .buttonStyle(PlainButtonStyle())
@ -30,6 +30,9 @@ struct PwdButton<Label: View>: View {
RoundedRectangle(cornerRadius: size.cornerRadius) RoundedRectangle(cornerRadius: size.cornerRadius)
.stroke(variant.borderColor(colorScheme), lineWidth: variant.borderWidth) .stroke(variant.borderColor(colorScheme), lineWidth: variant.borderWidth)
) )
.onTapGesture {
action()
}
} }
} }