Add a Stylelint rule to enforce using border-radius tokens
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox144 fixed)
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: hjones, Assigned: jooliver)
References
(Blocks 3 open bugs)
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 |
We should add a Stylelint rule to enforce only using --border-radius-* tokens for any border-radius properties in CSS and SCSS files. Since this property only uses relatively simple values, the rule should be autofixable. I have a POC of what this rule could look like here.
If we can make this rule autofixable, we should consider fixing all the low hanging fruit in a single patch following the implementation of this rule. That can be done in a stack of patches under this bug ID, or as a separate bug depending on implementer preference. I have an example of this as well here.
I don't think any of my POC patches took SCSS variables into account, which is likely something we'll need to correct for.
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Comment 1•1 year ago
|
||
As part of this work we will want to expand the number of border-radius design tokens we support - see bug 1979120 for more details.
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 2•1 year ago
|
||
- Adds a new stylelint rule to enforce the use of border-radius tokens.
- Fixes border-radius errors in existing files that are autofixable.
- Updates the rollout config to disable errors in existing files that are not autofixable.
Comment 3•1 year ago
|
||
- Fixes border-radius errors in existing files that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Updated•1 year ago
|
Comment 4•1 year ago
|
||
- Fixes border-radius errors that are autofixable in various files.
- Updates the rollout config to remove fixed files from the list.
Comment 5•1 year ago
|
||
- Fixes border-radius errors in aboutlogins files that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Updated•1 year ago
|
Comment 6•1 year ago
|
||
- Fixes border-radius errors in firefoxview files that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Comment 7•1 year ago
|
||
- Fixes border-radius errors in ai-ml-related files that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Comment 8•1 year ago
|
||
- Fixes border-radius errors in extension files that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Comment 9•1 year ago
|
||
- Fixes border-radius errors in panel-list files that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Comment 10•1 year ago
|
||
- Fixes border-radius errors in devtools files that are autofixable.
- Updates the rollout config to apply use-border-radius-tokens linting for fixed files.
Comment 11•1 year ago
|
||
- Fixes border-radius errors in newtab files that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Comment 12•1 year ago
|
||
- Fixes border-radius errors that are autofixable.
- Updates the rollout config to remove fixed files from the list.
Comment 13•1 year ago
|
||
Comment 14•1 year ago
|
||
Comment 16•1 year ago
|
||
Comment 17•1 year ago
|
||
| bugherder | ||
Updated•1 year ago
|
Comment 18•1 year ago
|
||
Comment 19•1 year ago
|
||
Comment 20•1 year ago
|
||
Backed out for causing bc failures @ browser_ext_popup_corners
Comment 21•1 year ago
|
||
Comment 22•1 year ago
|
||
| bugherder | ||
Comment 23•1 year ago
|
||
Is this bug meant to be open still for the landing of the last patches? If so, you can re-open it and add the leave-open keyword and then remove it just before landing the last ones.
Comment 24•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 25•1 year ago
|
||
| bugherder | ||
Comment 26•1 year ago
|
||
Comment 27•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Description
•