Skip to content

Commit

Permalink
fix: BodySmallItalicSeconday added to TextStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrdctr committed Oct 3, 2023
1 parent 8279b76 commit 02160d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Mail/Views/Thread/MessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ struct MessageView: View {

if isShowingErrorLoading {
Text(MailResourcesStrings.Localizable.errorLoadingMessage)
.italic()
.textStyle(.bodySmallSecondary)
.textStyle(.bodySmallItalicSecondary)
.padding(.top, value: .regular)
.padding(.horizontal, value: .regular)
.frame(maxWidth: .infinity, alignment: .leading)
Expand Down
5 changes: 5 additions & 0 deletions MailCore/Utils/MailTextStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ public struct MailTextStyle {
color: MailResourcesAsset.textSecondaryColor
)

public static let bodySmallItalicSecondary = MailTextStyle(
font: .system(size: 14).italic(),
color: MailResourcesAsset.textSecondaryColor
)

public static let bodySmallTertiary = MailTextStyle(
font: .system(size: 14),
color: MailResourcesAsset.textTertiaryColor
Expand Down

0 comments on commit 02160d5

Please sign in to comment.