Skip to content

Commit 962ff6a

Browse files
committed
Add newly added posHeadingRegular for receipt text field.
1 parent edac458 commit 962ff6a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

WooCommerce/Classes/POS/Presentation/Reusable Views/POSSendReceiptView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct POSSendReceiptView: View {
4545
.textInputAutocapitalization(.never)
4646
.autocorrectionDisabled()
4747
.multilineTextAlignment(.center)
48-
.font(POSFontStyle.posBodyXLarge)
48+
.font(POSFontStyle.posHeadingRegular)
4949
.focused()
5050
.focused($isTextFieldFocused)
5151
.padding()

WooCommerce/Classes/POS/Utils/POSFontStyle.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import SwiftUI
44
/// 1qcjzXitBHU7xPnpCOWnNM-fi-23_7310
55
enum POSFontStyle {
66
case posHeadingBold
7+
case posHeadingRegular
78
case posBodyXLarge
89
case posBodyLargeBold
910
case posBodyLargeRegular(underline: Bool = false)
@@ -21,6 +22,8 @@ enum POSFontStyle {
2122
switch self {
2223
case .posHeadingBold:
2324
Font.system(size: scaledValue(FontSize.heading, maximumContentSizeCategory: maximumContentSizeCategory ?? .accessibilityLarge), weight: .bold)
25+
case .posHeadingRegular:
26+
Font.system(size: scaledValue(FontSize.heading, maximumContentSizeCategory: maximumContentSizeCategory ?? .accessibilityLarge), weight: .regular)
2427
case .posBodyXLarge:
2528
Font.system(
2629
size: scaledValue(FontSize.bodyXLarge, maximumContentSizeCategory: maximumContentSizeCategory ?? .accessibilityLarge),

0 commit comments

Comments
 (0)