commit 5bc99dcb0f8223c06d7d49020087cf51bd9fc4da parent 731d92aa0320eccbd7c0bdc0de376b7879a19b8c Author: dwhisman <dwhisman@mozilla.com> Date: Mon, 3 Nov 2025 20:51:56 +0000 Bug 1992736 - Use font-weight tokens instead of keywords/raw values r=hsohaney Differential Revision: https://phabricator.services.mozilla.com/D270565 Diffstat:
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/browser/components/backup/content/password-rules-tooltip.css b/browser/components/backup/content/password-rules-tooltip.css @@ -86,7 +86,7 @@ #password-rules-header { margin-block-start: 0; font-size: 14px; - font-weight: 600; + font-weight: var(--heading-font-weight); } .rule-description { diff --git a/browser/components/backup/content/password-validation-inputs.css b/browser/components/backup/content/password-validation-inputs.css @@ -62,7 +62,7 @@ #new-password-span, #repeat-password-span { text-align: start; - font-weight: var(--font-weight-heading); + font-weight: var(--heading-font-weight); font-size: var(--font-size-sub-heading); } } diff --git a/browser/components/backup/content/restore-from-backup.mjs b/browser/components/backup/content/restore-from-backup.mjs @@ -280,7 +280,10 @@ export default class RestoreFromBackup extends MozLitElement { applyContentCustomizations() { if (this.aboutWelcomeEmbedded) { - this.style.setProperty("--label-font-weight", "600"); + this.style.setProperty( + "--label-font-weight", + "var(--font-weight-semibold)" + ); } } diff --git a/browser/components/backup/content/turn-on-scheduled-backups.css b/browser/components/backup/content/turn-on-scheduled-backups.css @@ -9,7 +9,7 @@ --margin-inline-start-checkbox-content: calc(var(--checkbox-margin-inline) + var(--checkbox-size)); --font-size-heading: 17px; --font-size-sub-heading: 15px; - --font-weight-label: var(--font-weight, normal); + --font-weight-label: normal; --font-size-label: 14px; --padding-block-wrapper: 20px; --margin-block-start-file-picker: 18px;