Closed Bug 1875396 Opened 2 years ago Closed 2 years ago

Avoid using `font-weight: 300` and `font-weight: lighter`

Categories

(Toolkit :: Themes, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: jules, Assigned: jules)

References

(Blocks 2 open bugs)

Details

(Keywords: access, intl)

Attachments

(1 external file)

Today h1s / titles tend to rely on font-weight: 300. We can't guarantee that different platform fonts have legible light weights so this has caused legibility problems, bugs, and conversations in the past. Upon recent discussions with Eric Pang from UX, we're opting for dropping the use of this weight for headings. To avoid any future visual issues, we should also not use light font weights in general beyond headings.

The steps to take care of this:

  • remove --font-weight-light design token in tokens-brand.css
  • remove --font-weight-light option within the font-weight property in text-and-typography.css
  • remove all --font-weight-light mentions in typography docs
  • audit and find any custom CSS headings (e.g. error info pages) that are using 300 or lighter and opt for --font-weight-bold instead
  • audit for font-weight: 300 and font-weight: lighter uses in general and find a better default (either the default font weight or --font-weight-bold) case-by-case
Blocks: 1779302, 1715946

Adding further considerations found in 1779302 by :jteow

Lastly, quite a number of about pages don't use the title-text class and instead inherit their styling from html|h1 in common-shared.css. One such example of this is about:profiles.

Severity: -- → S3
Priority: -- → P2
Keywords: access, intl
Assignee: nobody → jules
Attachment #9377086 - Attachment description: WIP: Bug 1875396 - Avoid using `font-weight: 300` and `font-weight: lighter` r?#desktop-theme-reviewers → Bug 1875396 - Avoid using `font-weight: 300` and `font-weight: lighter` r?#desktop-theme-reviewers,#reusable-components-reviewers,kcochrane
Status: NEW → ASSIGNED
Pushed by jsimplicio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b69dab8abba5 Avoid using `font-weight: 300` and `font-weight: lighter` r=kcochrane,desktop-theme-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,dao,mtigley,hjones,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Regressions: 1884672
No longer regressions: 1884672
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: