Skip to content

Commit 8eab7a6

Browse files
committed
address icon miss-alignment
1 parent 2e3a526 commit 8eab7a6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

WooCommerce/Classes/POS/Presentation/Settings/PointOfSaleSettingsHardwareDetailView.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,25 @@ struct PointOfSaleSettingsHardwareDetailView: View {
173173
Button {
174174
handleScannerDestination(destination)
175175
} label: {
176-
HStack(alignment: .firstTextBaseline) {
176+
HStack(spacing: POSSpacing.medium) {
177177
Image(systemName: destination.icon)
178178
.font(.posBodyLargeRegular())
179+
.accessibilityHidden(true)
180+
.renderedIf(!dynamicTypeSize.isAccessibilitySize)
179181
VStack(alignment: .leading, spacing: POSPadding.xSmall) {
180182
Text(destination.title)
181183
.font(.posBodyLargeRegular())
184+
.dynamicTypeSize(...DynamicTypeSize.accessibility2)
182185
Text(destination.subtitle)
183186
.font(.posBodyMediumRegular())
184187
.foregroundStyle(.secondary)
188+
.dynamicTypeSize(...DynamicTypeSize.accessibility2)
185189
}
190+
Spacer()
186191
}
187-
Spacer()
188192
}
189193
.buttonStyle(.plain)
194+
.accessibilityAddTraits(.isButton)
190195
.listRowSeparator(.hidden)
191196
}
192197
.listStyle(.plain)

0 commit comments

Comments
 (0)