Closed Bug 2076453 Opened 1 month ago Closed 1 month ago

Update macOS browser theme chrome so it passes use-design-tokens

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: jooliver, Assigned: jooliver)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp][acorntractors])

Attachments

(1 external file)

Migrate hardcoded CSS values in the listed files to design tokens so they pass stylelint-plugin-mozilla/use-design-tokens.

Existing violations can be viewed with:

./mach lint -l stylelint --skip-rollouts browser/themes/osx/browser.css browser/themes/osx/customizableui/panelUI.css browser/themes/osx/downloads/allDownloadsView.css

Guidelines:

  • Replace hardcoded values with existing space/size/color/font/etc tokens where possible.
  • Treat stylelint --fix suggestions as hints; verify visually. Suggestions might not always be correct or use the correct semantic token type.
  • If values are truly exceptional and cannot be replaced with a token, add a stylelint-disable comment for that line. Make sure to specify the rule that is being disabled and include an explanation of the reason for the exception in the comment.
  • Existing var(...) usages that are not design tokens: either map to a token, introduce an alias, or add a stylelint-disable comment/explanation.
  • After addressing all issues in a file, remove it from stylelint-rollouts.config.js

Files:

  • browser/themes/osx/browser.css
  • browser/themes/osx/customizableui/panelUI.css
  • browser/themes/osx/downloads/allDownloadsView.css
See Also: → 2076451
Assignee: nobody → jooliver
Status: NEW → ASSIGNED
Attachment #9656428 - Attachment description: WIP: Bug 2076453 - Update browser/themes/osx to pass use-design-tokens → WIP: Bug 2076453 - Update browser/themes/osx to pass use-design-tokens r=#desktop-theme-reviewers
Attachment #9656428 - Attachment description: WIP: Bug 2076453 - Update browser/themes/osx to pass use-design-tokens r=#desktop-theme-reviewers → Bug 2076453 - Update browser/themes/osx to pass use-design-tokens r=#desktop-theme-reviewers
Pushed by jooliver@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0f8fe1794bd7 https://hg.mozilla.org/integration/autoland/rev/2ef77d2e3bdf Update browser/themes/osx to pass use-design-tokens r=desktop-theme-reviewers,kcochrane
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: