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 c8c7442 commit f1c13d3Copy full SHA for f1c13d3
WooCommerce/Classes/POS/Presentation/Reusable Views/Buttons/POSButtonStyle.swift
@@ -27,10 +27,17 @@ struct POSButtonStyle: ButtonStyle {
27
}
28
29
func makeBody(configuration: Configuration) -> some View {
30
- HStack {
31
- Spacer()
32
- configuration.label
33
+ Group {
+ switch size {
+ case .normal:
+ HStack {
34
+ Spacer()
35
+ configuration.label
36
37
+ }
38
+ case .extraSmall:
39
40
41
42
.padding(.vertical, size.padding.vertical)
43
.padding(.horizontal, size.padding.horizontal)
0 commit comments