Skip to content

Commit

Permalink
Refactor FXIOS-19318 - Update Fonts in SnackBar to use FXFontStyles (#…
Browse files Browse the repository at this point in the history
…19324)

* Update Fonts  to use FXFontStyles

* Remove unused fontSize
  • Loading branch information
rojinpra7 authored Mar 21, 2024
1 parent 24d56d8 commit dfd36af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions firefox-ios/Client/Frontend/Widgets/SnackBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Shared
class SnackBar: UIView, ThemeApplicable {
private struct UX {
static let borderWidth: CGFloat = 0.5
static let fontSize: CGFloat = 17
}

let snackbarClassIdentifier: String
Expand Down Expand Up @@ -38,7 +37,7 @@ class SnackBar: UIView, ThemeApplicable {
}

private lazy var textLabel: UILabel = .build { label in
label.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .body, size: UX.fontSize)
label.font = FXFontStyles.Regular.body.scaledFont()
label.lineBreakMode = .byWordWrapping
label.numberOfLines = 0
label.backgroundColor = UIColor.clear
Expand Down

0 comments on commit dfd36af

Please sign in to comment.