Skip to content

Bug-2022758: Remove redundant Dark fonts#1011

Open
moijes12 wants to merge 2 commits intomozilla:mainfrom
moijes12:bug2022758
Open

Bug-2022758: Remove redundant Dark fonts#1011
moijes12 wants to merge 2 commits intomozilla:mainfrom
moijes12:bug2022758

Conversation

@moijes12
Copy link
Contributor

@moijes12 moijes12 commented Mar 12, 2026

Changes

As part of this PR, the fonts.ts file has been refactored to remove the redundant Dark fonts. All fonts use the standard ligt font settings now as the dark fonts did not differ from the light fonts in any way. All places where dark fonts were being used have been updated.

Fixes Bug-2022758

@kala-moz @gmierz

@netlify
Copy link

netlify bot commented Mar 12, 2026

Deploy Preview for mozilla-perfcompare ready!

Name Link
🔨 Latest commit 7e5ba0a
🔍 Latest deploy log https://app.netlify.com/projects/mozilla-perfcompare/deploys/69b673ec6da4760008d660be
😎 Deploy Preview https://deploy-preview-1011--mozilla-perfcompare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Refactor fonts.ts to remove the redundant Dark fonts
Also updated the settings where Dark fonts were conditionally
used.
* Cleanup lint errors in `SearchContainerStyles.ts`
* Fix snapshots
@moijes12 moijes12 marked this pull request as ready for review March 15, 2026 08:57
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.45%. Comparing base (8d9285e) to head (7e5ba0a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1011      +/-   ##
==========================================
- Coverage   96.46%   96.45%   -0.01%     
==========================================
  Files         109      109              
  Lines        3051     3048       -3     
  Branches      691      688       -3     
==========================================
- Hits         2943     2940       -3     
  Misses        107      107              
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@kala-moz kala-moz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! I've added my requested changes

@@ -3,8 +3,6 @@ import { stylesheet } from 'typestyle';
import { FontsRaw, Spacing } from '../styles';

export const SearchContainerStyles = (mode: string, isHome: boolean) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can delete the mode parameter since we're not using it anymore. This will involve cleaning all the arguments where SearchContainerStyles is called so be sure to delete them and any unused constants:

const sectionStyles = SearchContainerStyles(themeMode, /* isHome */ false);

const sectionStyles = SearchContainerStyles(themeMode, /* isHome */ false);

const styles = SearchContainerStyles(themeMode, /* isHome */ true);

const sectionStyles = SearchContainerStyles(themeMode, /* isHome */ false);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants