Closed
Bug 1861505
Opened 2 years ago
Closed 7 months ago
Replace --in-content-button variables with button Design Tokens
Categories
(Toolkit :: Themes, task)
Toolkit
Themes
Tracking
()
RESOLVED
FIXED
143 Branch
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: mstriemer, Assigned: cmeade)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp][acorntractors])
Attachments
(1 file, 1 obsolete file)
Once we have the --in-content-button-* variables being defined from the tokens in bug 1835869 then the existing uses of --in-content-button-* variables can be replaced with our --button-* Design Token variables
Updated•2 years ago
|
| Reporter | ||
Comment 1•2 years ago
|
||
Depends on D188123
Updated•2 years ago
|
Assignee: nobody → mstriemer
Status: NEW → ASSIGNED
Updated•2 years ago
|
Blocks: design-tokens-migration
Updated•2 years ago
|
Whiteboard: [fidefe-reusable-components] → [recomp]
| Reporter | ||
Comment 3•1 year ago
|
||
I used this script to rename the variables before, could be useful again
- Download the two files
cat in-content-button-renames.txt | xargs -I % sh -c 'bash rename-css-var.sh %'- Remove or verify the assignments that were updated
** This can probably be removed:--button-text-color: var(--in-content-text-color);
** This can definitely be removed:--button-background-color: color-mix(in srgb, currentColor 7%, transparent);
** Unsure here, probably fine but maybe worth refactoring the styles (blockedSite.css):--button-background-color: transparent;
Updated•7 months ago
|
Whiteboard: [recomp] → [recomp][acorntractors]
| Assignee | ||
Updated•7 months ago
|
Assignee: mstriemer → cmeade
| Assignee | ||
Comment 4•7 months ago
|
||
Changed
- references to
--in-content-button-*custom properties now use--button-*counterparts
Removed
- --in-content-button-text-color
- --in-content-button-text-color-hover
- --in-content-button-text-color-active
- --in-content-button-background
- --in-content-button-background-hover
- --in-content-button-background-active
- --in-content-button-border-color
- --in-content-button-border-color-hover
- --in-content-button-border-color-active
- --in-content-primary-button-text-color
- --in-content-primary-button-text-color-hover
- --in-content-primary-button-text-color-active
- --in-content-primary-button-background
- --in-content-primary-button-background-hover
- --in-content-primary-button-background-active
- --in-content-primary-button-border-color
- --in-content-primary-button-border-hover
- --in-content-primary-button-border-active
- --in-content-danger-button-background
- --in-content-danger-button-background-hover
- --in-content-danger-button-background-active
Updated•7 months ago
|
Attachment #9360501 -
Attachment is obsolete: true
Pushed by tgiles@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/c09fa0bd13b4
https://hg.mozilla.org/integration/autoland/rev/6500873b42b5
Remove --in-content-button-* variables r=reusable-components-reviewers,mtigley,extension-reviewers,settings-reviewers,desktop-theme-reviewers,credential-management-reviewers,webrtc-reviewers,devtools-reviewers,fxview-reviewers,omc-reviewers,nsharpley,hjones,ng,aminomancer,rpl
Comment 6•7 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
status-firefox143:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
Updated•6 months ago
|
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in
before you can comment on or make changes to this bug.
Description
•