Closed Bug 2022974 Opened 6 months ago Closed 5 months ago

Update global-shared.css so it passes use-design-tokens

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox150 fixed)

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: dwhisman, Assigned: dwhisman)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp][acorntractors])

Attachments

(1 file)

Update toolkit/themes/shared/global-shared.css with design tokens so it passes our use-design-tokens stylelint rule.

To see existing violations, run:

./mach lint -l stylelint --skip-rollouts toolkit/themes/shared/global-shared.css
Assignee: nobody → dwhisman
Status: NEW → ASSIGNED

While the focus of this work is to resolve stylelint issues, there are places where more semantic tokens are used rather than replicating the existing styles, and the spacing values are updated to use space tokens, which are based on rem, so there may be cases where pixels would be preferable.

Pushed by dwhisman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7cc16dd8bba0 https://hg.mozilla.org/integration/autoland/rev/87fe7dedb1d0 Update global-shared.css so it passes use-design-tokens rules r=desktop-theme-reviewers,emilio,dao
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/080e405d71a7 https://hg.mozilla.org/integration/autoland/rev/ca0c676c37ab Revert "Bug 2022974 - Update global-shared.css so it passes use-design-tokens rules r=desktop-theme-reviewers,emilio,dao" for causing failures at positioning.htm

Backed out for causing mochitests failures at positioning.html
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | layout/base/tests/chrome/test_dialog_with_positioning.html | check fixed-pos element t bottom positioned correctly - got 38, expected 37.66667175292969

Flags: needinfo?(dwhisman)

The spacing changes affected the math of the failing test, so I adjusted it to be slightly more permissive.

Flags: needinfo?(dwhisman)
Pushed by dwhisman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1d86b6298a2f https://hg.mozilla.org/integration/autoland/rev/241a46fc9aed Update global-shared.css so it passes use-design-tokens rules r=desktop-theme-reviewers,emilio,dao
Pushed by ctuns@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4305a8c70656 https://hg.mozilla.org/integration/autoland/rev/06dfe033d694 Revert "Bug 2022974 - Update global-shared.css so it passes use-design-tokens rules r=desktop-theme-reviewers,emilio,dao" for causing mochitest failures in test_mousescroll.xhtml

Another test failed due to minor changes in spacing, refactored the test to more reliably check the condition it's looking for.

Flags: needinfo?(dwhisman)
Pushed by dwhisman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/56a439fc7470 https://hg.mozilla.org/integration/autoland/rev/ee33b002cec8 Update global-shared.css so it passes use-design-tokens rules r=desktop-theme-reviewers,emilio,dao
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: