Skip to content

Commit 94bd793

Browse files
committed
Use accessbility layout for fonts bigger than extraLarge
1 parent a229c8b commit 94bd793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/StoreWidgets/StoreInfoWidget.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private struct StoreInfoView: View {
6060
.statRangeStyle()
6161
}
6262

63-
if category.isAccessibilityCategory {
63+
if category > .extraLarge {
6464
AccessibilityStatsCard(entry: entry)
6565
} else {
6666
StatsCard(entry: entry)
@@ -324,7 +324,7 @@ struct StoreWidgets_Previews: PreviewProvider {
324324
updatedTime: "10:24 PM")
325325
)
326326
.previewContext(WidgetPreviewContext(family: .systemMedium))
327-
.environment(\.sizeCategory, .accessibilityMedium)
327+
.environment(\.sizeCategory, .extraExtraLarge)
328328

329329
NotLoggedInView()
330330
.previewContext(WidgetPreviewContext(family: .systemMedium))

0 commit comments

Comments
 (0)