Closed Bug 1798404 Opened 2 years ago Closed 11 months ago

make toolkit our source of truth for CSS token values/variables

Categories

(Toolkit :: UI Widgets, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- wontfix
firefox115 --- fixed

People

(Reporter: hjones, Assigned: jules)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(1 file, 1 obsolete file)

Currently our reusable widgets in toolkit rely on variable values defined in in-content/common-shared.css

This has led to issues when these widgets are used in chrome contexts. It also means that the lit based components we're currently building have an implicit dependency on that CSS file having been loaded somewhere in the contexts in which they are being used.

As a solution to the issues we've encountered we want to create a CSS tokens/variables file in toolkit that can be shared between in-content and chrome. This will be our source of truth for component variable values going forward (specifically for things like colors, spacing, etc). The names used should match the variable names used by design to facilitate better communication and smoother dev/design handoffs.

Whiteboard: [fidefe-reusable-components-ms1]
Attachment #9307912 - Attachment description: WIP: Bug 1798404 r?mstriemer,hjones,tgiles adding design tokens to Storybook project → WIP: Bug 1798404 - adding design tokens to Storybook project r?mstriemer,hjones,tgiles
Assignee: nobody → jules
Attachment #9307912 - Attachment description: WIP: Bug 1798404 - adding design tokens to Storybook project r?mstriemer,hjones,tgiles → Bug 1798404 - adding design tokens to Storybook project r?mstriemer,hjones
Status: NEW → ASSIGNED
Blocks: 1806747
Blocks: 1812135
No longer blocks: reusable-components
Attachment #9307912 - Attachment description: Bug 1798404 - adding design tokens to Storybook project r?mstriemer,hjones → Bug 1798404 - adding design tokens to Storybook project r?mstriemer,hjones,morgan
Attachment #9307912 - Attachment description: Bug 1798404 - adding design tokens to Storybook project r?mstriemer,hjones,morgan → Bug 1798404 - adding design tokens to Storybook project r?hjones,morgan
Attachment #9307912 - Attachment description: Bug 1798404 - adding design tokens to Storybook project r?hjones,morgan → Bug 1798404 - adding design tokens to Storybook project r?hjones,morgan,mstriemer
Pushed by mstriemer@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c4ff2e295694
adding design tokens to Storybook project r=mstriemer,hjones,desktop-theme-reviewers,dao,morgan

Backed out for causing dt failures in browser_styleeditor_fission_switch_target.js.

Flags: needinfo?(jules)
Pushed by mstriemer@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1cdfa0b182b1
adding design tokens to Storybook project r=mstriemer,hjones,desktop-theme-reviewers,dao,morgan
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
Duplicate of this bug: 1806747
Flags: needinfo?(jules)
Blocks: 1831642
Regressions: 1835581
Regressions: 1835583
Regressions: 1835588
Regressions: 1835590

Dao, should we back out this bug from release and build a RC2 given that you marked several of the regressions filed by Alice as S2? Thanks

Flags: needinfo?(dao+bmo)

(In reply to Pascal Chevrel:pascalc from comment #7)

Dao, should we back out this bug from release and build a RC2 given that you marked several of the regressions filed by Alice as S2? Thanks

Do you know if this can be backed out without conflicts from 114? If so that's probably the best way forward there.

Flags: needinfo?(dao+bmo) → needinfo?(pascalc)

(In reply to Dão Gottwald [::dao] from comment #8)

(In reply to Pascal Chevrel:pascalc from comment #7)

Dao, should we back out this bug from release and build a RC2 given that you marked several of the regressions filed by Alice as S2? Thanks

Do you know if this can be backed out without conflicts from 114? If so that's probably the best way forward there.

It backs out cleanly.

Flags: needinfo?(pascalc)

(In reply to Pascal Chevrel:pascalc from comment #9)

(In reply to Dão Gottwald [::dao] from comment #8)

(In reply to Pascal Chevrel:pascalc from comment #7)

Dao, should we back out this bug from release and build a RC2 given that you marked several of the regressions filed by Alice as S2? Thanks

Do you know if this can be backed out without conflicts from 114? If so that's probably the best way forward there.

It backs out cleanly.

Okay, let's do that then. Thanks!

The issue is that --button-primary-bgcolor is unset which is used for setting the focus color

Changing

    --system-color-accent: var(--button-primary-bgcolor);

to

    --system-color-accent: var(--button-primary-bgcolor, AccentColor);

Fixes all regressors for me

Attached a patch if that is preferrable

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago11 months ago
Resolution: --- → FIXED

Should this be 114 fixed 115 affected? This is still on central right? Just backed out of 114?

This is still on central, the backout is only on 114

Comment on attachment 9336561 [details]
Bug 1798404 - followup: fix focusring in non-browser themes dialogs r?dao,jules

Revision D179453 was moved to bug 1835581. Setting attachment 9336561 [details] to obsolete.

Attachment #9336561 - Attachment is obsolete: true
Blocks: 1722643
Target Milestone: 114 Branch → 115 Branch
Target Milestone: 115 Branch → 114 Branch
Blocks: 1868950
Whiteboard: [fidefe-reusable-components-ms1] → [recomp]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: