Closed Bug 1826829 Opened 2 years ago Closed 1 year ago

Update link styling to use design tokens

Categories

(Toolkit :: Themes, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: mstriemer, Assigned: hjones)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(9 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

Bug 1806747 is adding design tokens files that could be used to define our link styling. Once that lands we should look to update our link styling to be backed by our design tokens.

This would likely affect common-shared.css [0] and global-shared.css [1]. It may perhaps make sense to combine some of these styles into something that could be loaded in both cases and supports handling the differences between the two at the token level.

[0] https://searchfox.org/mozilla-central/rev/3424c000a7ff304b2d1efb8561a924232f7f12fc/toolkit/themes/shared/in-content/common-shared.css#703
[1] https://searchfox.org/mozilla-central/rev/3424c000a7ff304b2d1efb8561a924232f7f12fc/toolkit/themes/shared/global-shared.css#144

Assignee: nobody → tgiles
Severity: -- → N/A
Priority: -- → P3
Assignee: tgiles → nobody

Bug 1837458 has some related discussion around HCM styling, which should be incorporated here

Assignee: nobody → hjones

Decided to save the work of creating link utility classes/shared styles for when we have a clearer sense of what that should look like. Instead I went down the path of trying to remove/replace all references to --in-content-link-color-* vars to see how that process goes.

I could be missing something here since I'm not super familiar with this code, but it seems like we pull in in-content/common.css in aboutwelcome.html so we should have access to the token values.

Depends on D182258

Not sure how we feel about changing the token values to white for this specific use case. I'm down to try other approaches if setting token values from other stylesheets is something we always want to avoid.

Depends on D182259

Attachment #9341370 - Attachment description: WIP: Bug 1826829 - update link styles to use tokens → Bug 1826829 - update link styles to use tokens r=mstriemer,jules
Attachment #9341371 - Attachment description: WIP: Bug 1826829 - remove --in-content-link-color-* references from login-item.css → Bug 1826829 - remove --in-content-link-color-* references from login-item.css r=mstriemer,jules
Attachment #9341372 - Attachment description: WIP: Bug 1826829 - remove --in-content-link-color-* reference from aboutSessionRestore.css → Bug 1826829 - remove --in-content-link-color-* reference from aboutSessionRestore.css r=mstriemer,jules
Attachment #9341373 - Attachment description: WIP: Bug 1826829 - remove --in-content-link-color-* reference from preferences.css → Bug 1826829 - remove --in-content-link-color-* reference from preferences.css r=mstriemer,jules
Attachment #9341374 - Attachment description: WIP: Bug 1826829 - remove --in-content-link-color-* references from aboutaddons.css → Bug 1826829 - remove --in-content-link-color-* references from aboutaddons.css r=mstriemer,jules
Attachment #9341375 - Attachment description: WIP: Bug 1826829 - remove --in-content-link-color-* references from aboutwelcome CSS → Bug 1826829 - remove --in-content-link-color-* references from aboutwelcome CSS r=mstriemer,jules
Attachment #9341376 - Attachment description: WIP: Bug 1826829 - remove --in-content-link-color-* references from aboutPrivateBrowsing.css → Bug 1826829 - remove --in-content-link-color-* references from aboutPrivateBrowsing.css r=mstriemer,jules
Attachment #9341377 - Attachment description: WIP: Bug 1826829 - remove --in-content-link-color-* variables from common-shared.css → Bug 1826829 - remove --in-content-link-color-* variables from common-shared.css r=mstriemer,jules
See Also: → 1840906
Pushed by hjones@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0db697e9a48 update link styles to use tokens r=mstriemer,jules,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/662f91b6eb9c remove --in-content-link-color-* references from login-item.css r=desktop-theme-reviewers,credential-management-reviewers,sgalich,dao https://hg.mozilla.org/integration/autoland/rev/1616cebc8db0 remove --in-content-link-color-* reference from aboutSessionRestore.css r=mstriemer,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/068b7cd404a3 remove --in-content-link-color-* reference from preferences.css r=mstriemer,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/1bb91028544e remove --in-content-link-color-* references from aboutaddons.css r=mstriemer,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/9d98996b9895 remove --in-content-link-color-* references from aboutwelcome CSS r=desktop-theme-reviewers,omc-reviewers,dao,aminomancer https://hg.mozilla.org/integration/autoland/rev/07ae37d05047 remove --in-content-link-color-* references from aboutPrivateBrowsing.css r=mstriemer,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/a283d52fcb09 remove --in-content-link-color-* reference from login-alert.css r=desktop-theme-reviewers,credential-management-reviewers,dao,mtigley https://hg.mozilla.org/integration/autoland/rev/494a7011f528 remove --in-content-link-color-* variables from common-shared.css r=mstriemer,desktop-theme-reviewers,dao
Whiteboard: [fidefe-reusable-components] → [recomp]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: