commit 7af176bdec888661bee2b8aa9c2cb2f823c11655 parent 9540e9cc9d782012c725c6ca2ff97315cd5fbd32 Author: dwhisman <dwhisman@mozilla.com> Date: Mon, 17 Nov 2025 18:51:10 +0000 Bug 1992736 - Use font-weight tokens instead of keywords/raw values r=webcompat-reviewers,fxview-reviewers,firefox-ai-ml-reviewers,twisniewski,nsharpley,yjamora Differential Revision: https://phabricator.services.mozilla.com/D271607 Diffstat:
9 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/browser/components/firefoxview/card-container.css b/browser/components/firefoxview/card-container.css @@ -119,7 +119,7 @@ align-self: center; margin: 0; font-size: 1.13em; - font-weight: 600; + font-weight: var(--heading-font-weight); overflow: hidden; text-overflow: ellipsis; user-select: none; diff --git a/browser/components/firefoxview/firefoxview.css b/browser/components/firefoxview/firefoxview.css @@ -35,7 +35,7 @@ /* copy over newtab background color from activity-stream-[os].css files */ --newtab-background-color: light-dark(#f9f9fb, #2b2a33); - --fxview-card-header-font-weight: 500; + --fxview-card-header-font-weight: var(--heading-font-weight); &[lwt-newtab] { color-scheme: light; diff --git a/browser/components/firefoxview/fxview-tab-row.css b/browser/components/firefoxview/fxview-tab-row.css @@ -104,7 +104,7 @@ .fxview-tab-row-url, .fxview-tab-row-time { - font-weight: 400; + font-weight: normal; } .fxview-tab-row-button::part(button) { @@ -121,7 +121,7 @@ .fxview-tab-row-button.undo-button::part(button) { font-size: var(--font-size-small); - font-weight: 400; + font-weight: normal; } .fxview-tab-row-button.dismiss-button, diff --git a/browser/components/firefoxview/history.css b/browser/components/firefoxview/history.css @@ -31,7 +31,7 @@ } .import-history-banner .banner-text span:first-child { - font-weight: 600; + font-weight: var(--font-weight-semibold); } .import-history-banner [slot="main"] { diff --git a/browser/components/firefoxview/view-syncedtabs.css b/browser/components/firefoxview/view-syncedtabs.css @@ -36,7 +36,7 @@ h3.device-header { display: grid; align-items: center; cursor: inherit; - font-weight: var(--fxview-card-header-font-weight); + font-weight: var(--fxview-card-header-font-weight, var(--heading-font-weight)); font-size: 1em; grid-template-columns: min-content 1fr; gap: 0 16px; diff --git a/browser/components/genai/content/smart-assist.css b/browser/components/genai/content/smart-assist.css @@ -54,7 +54,7 @@ } .log-title { - font-weight: bold; + font-weight: var(--font-weight-bold); font-size: var(--font-size-medium); margin-block-end: var(--space-medium); display: block; diff --git a/browser/components/tabunloader/content/aboutUnloads.css b/browser/components/tabunloader/content/aboutUnloads.css @@ -17,7 +17,7 @@ body { } .top-level-process { - font-weight: bold; + font-weight: var(--font-weight-bold); } .shared-process { diff --git a/browser/components/textrecognition/textrecognition.css b/browser/components/textrecognition/textrecognition.css @@ -32,7 +32,7 @@ } .textRecognitionHeader { - font-weight: bold; + font-weight: var(--font-weight-bold); display: flex; flex-direction: row; align-items: center; diff --git a/browser/extensions/webcompat/about-compat/aboutCompat.css b/browser/extensions/webcompat/about-compat/aboutCompat.css @@ -106,7 +106,7 @@ text-align: left; border-block: 2px solid transparent; font-size: 1em; - font-weight: bold; + font-weight: var(--font-weight-bold); padding: 1em; } @@ -149,7 +149,7 @@ } td:not([colspan]):nth-child(1) { - font-weight: bold; + font-weight: var(--font-weight-bold); padding-bottom: 0.25em; } @@ -173,7 +173,7 @@ padding: 0; border: 0; border-inline-start: 1px solid var(--border-color); - font-weight: 600; + font-weight: var(--font-weight-semibold); appearance: none; } }