Closed Bug 1894337 Opened 2 years ago Closed 1 year ago

Replace --in-content-page-color value with design token

Categories

(Toolkit :: Themes, task)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: tgiles, Assigned: cmeade)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp] [acorntractors])

Attachments

(1 file)

Something that we noticed during Bug 1858998 is that changing the color-scheme in Storybook would cause some element not to update correctly. This appears to be because of variables in common-shared.css not utilizing the new design tokens. --in-content-page-color is used six times in common-shared and is a good candidate to replace the value with the design token equivalent.

Whiteboard: [recomp] → [recomp] [acorntractors]

Need input to have the right replacement token to move forward.

Flags: needinfo?(jules)
Flags: needinfo?(hjones)

Hey all, this in-content page variable should now be --background-color-canvas

Flags: needinfo?(jules)
Assignee: nobody → cmeade
Status: NEW → ASSIGNED

We're going to use --text-color instead, and I have also created https://bugzilla.mozilla.org/show_bug.cgi?id=1980414 to consolidate the background properties.

Changed

  • --in-content-page-color references now use --text-color
  • --in-content-text-color references now use --text-color

Removed

  • --in-content-page-color references
  • --in-content-text-color references

Ope my bad, I must've assumed it was page-background not the color. Thanks for catching this Catherine :)

Pushed by mstriemer@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6d508c96275b https://hg.mozilla.org/integration/autoland/rev/05931e75028a Replace `--in-content*` color values with design token r=reusable-components-reviewers,mtigley,extension-reviewers,settings-reviewers,desktop-theme-reviewers,credential-management-reviewers,webrtc-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,omc-reviewers,firefox-ai-ml-reviewers,toolkit-telemetry-reviewers,akulyk,nchevobbe,hjones,gregtatum,mjf,rpl,mviar
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
See Also: → 1981956
QA Whiteboard: [qa-triage-done-c144/b143]
Flags: needinfo?(hjones)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: