Closed Bug 1861505 Opened 2 years ago Closed 7 months ago

Replace --in-content-button variables with button Design Tokens

Categories

(Toolkit :: Themes, task)

task

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

Assignee: nobody → mstriemer
Status: NEW → ASSIGNED
Whiteboard: [fidefe-reusable-components] → [recomp]

This doesn't depend on bug 1835869 anymore.

No longer depends on: 1835869

I used this script to rename the variables before, could be useful again

  1. Download the two files
  2. cat in-content-button-renames.txt | xargs -I % sh -c 'bash rename-css-var.sh %'
  3. 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;
Whiteboard: [recomp] → [recomp][acorntractors]
Assignee: mstriemer → cmeade
Blocks: 1979949

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
Attachment #9360501 - Attachment is obsolete: true
See Also: → 1980270
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
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
See Also: → 1980880
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: