Update usage of border-radius to use design token values
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox145 fixed)
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: jooliver, Assigned: jooliver)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp][acorntractors])
Attachments
(11 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
A stylelint rule has been added to enforce usage of design tokens for border-radius properties (Bug 1979115). As part of that work, a rollout file (stylelint-rollouts.config.js) was implemented to ignore existing rule violations.
For this bug, we should update existing violations of the border-radius rule to use accepted design tokens. See existing border-radius design tokens:
--border-radius-circle: 9999px;
--border-radius-small: 4px;
--border-radius-medium: 8px;
--border-radius-large: 12px;
This work will also include adding new design tokens to capture missing values, for example:
--border-radius-xsmall: 2px;
Introducing border-radius-xsmall has already been discussed with and accepted by the Acorn team. However, additional tokens should be discussed/approved before introducing. Existing border-radius values that do not match an existing token value and do not warrant a new token (e.g. 3px, 5px, etc) should be normalized to match existing token values.
Steps to reproduce
- In
stylelint-rollouts.config.js, locate therollout-use-border-radius-tokensand remove the associatedfilesarray - Run
./mach lint --linter stylelint **to see the existing violations
Guidelines to fix
These guidelines will help streamline the review process for this fix:
- Due to the number of existing violations, the fix should be broken into multiple patches, grouped by appropriate review groups.
- Do not update
stylelint-rollouts.config.jsas part of each patch. Instead, follow up with patch that updates the rollouts config after all fixes have been made. This will prevent the frontend-codestyle-reviewers from needing to review and approve every single patch.
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Comment 2•1 year ago
|
||
- only devtools aboutdebugging can use design tokens currently
- webcompat interventions for extensions are intended to override existing styles, so should not enforce design token usage
| Assignee | ||
Comment 5•1 year ago
|
||
| Assignee | ||
Comment 6•1 year ago
|
||
| Assignee | ||
Comment 7•1 year ago
|
||
| Assignee | ||
Comment 8•1 year ago
|
||
- updates 2px values to use --border-radius-xsmall token
- normalize 1px values to use closest border radius token (2px --border-radius-xsmall)
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Backed out for causing bc failures @ browser_parsable_css.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/ac3c07979dad66c3899b90b23fc8e3390857cca6
https://hg-edge.mozilla.org/integration/autoland/rev/eddb6f3597dc831c1166bd619cd4671edd03e55d
Comment 13•1 year ago
|
||
Comment 14•1 year ago
|
||
Comment 15•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 16•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 17•1 year ago
|
||
| Assignee | ||
Comment 18•1 year ago
|
||
| Assignee | ||
Comment 19•1 year ago
|
||
| Assignee | ||
Comment 20•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 21•1 year ago
|
||
Comment 22•1 year ago
|
||
Comment 23•1 year ago
|
||
Comment 24•1 year ago
|
||
Comment 25•1 year ago
|
||
| bugherder | ||
Comment 26•1 year ago
|
||
Comment 27•1 year ago
|
||
| bugherder | ||
Updated•1 year ago
|
Comment 28•1 year ago
|
||
Comment 29•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Description
•