mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.15k stars 2.91k forks source link

Update Fonts related to HomepageMessageCardCell to use FXFontStyles #20470

Open data-sync-user opened 4 months ago

data-sync-user commented 4 months ago

This task is part of a series of tasks to standardizing fonts to start using FXFontStyles.

Background Context: Previously, we were using DefaultDynamicFontHelper and setting the text style, size and weight for each font, which sometimes did not match our design system. By using FXFontStyles, we can standardize our fonts and be more aligned with the design system.

Task: Please update how we set fonts in the Firefox iOS Project related:

HomepageMessageCardCell

Acceptance Criteria:

Replace usage of DefaultDynamicFontHelper with FXFontStyles

If there are discrepancies in terms of replacing the old fonts with the new standard, we will need to bring design in to approve the PR.

Please provide before and after screenshots of the UI.

Reference:

Usage example: FXFontStyles.Regular.headline.scaledFont()

See this PR for example of standardizing fonts for Primary Button:

https://github.com/mozilla-mobile/firefox-ios/pull/18711/files

┆Issue is synchronized with this Jira Task

DanielDervishi commented 4 months ago

I'll pick this ticket up :)

data-sync-user commented 3 months ago

➤ Daniel Dervishi commented:

Testing Instructions:

!Screenshot 2024-06-05 at 11.15.38 AM.png|width=720,height=755,alt="Screenshot 2024-06-05 at 11.15.38 AM.png"!

data-sync-user commented 3 months ago

➤ Adina Petridean commented:

Verified as fixed on v9000(43298) with iPhone 14 Pro Max (iOS 16.2).

!Screenshot 2024-07-05 at 14.12.27.png|width=1021,height=1002,alt="Screenshot 2024-07-05 at 14.12.27.png"!

data-sync-user commented 2 weeks ago

➤ Norberto Andres Furlan commented:

Andrei Bodea this is an old ticket. Can you verify and close it? Thanks!

data-sync-user commented 2 weeks ago

➤ Diana Andreea Barladeanu commented:

Validated on v131 (45403), with iPhoe 15 (17.5)