Page MenuHomePhabricator

Ensure `@color-subtle` is used instead of `#72777d`
Open, Needs TriagePublic

Description

Background

Originated in T335225: Token clean-up: Collect and evaluate `@color-subtle` #54595d vs often used #72777d the decision was provided to solely rely on @color-subtle with #54595d as value in current Codex WikimediaUI theme.

Goal

Replace static values and outdated @color-base-subtle variables with current, as of v1.20.1, @color-subtle token.
This also makes the interface react appropriately to dark mode user preference while it fails before.

Acceptance criteria for done

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1119784 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/extensions/WikibaseQualityConstraints@master] styles: Replace static values by Codex design tokens and fix todo

https://gerrit.wikimedia.org/r/1119784

Change #1119784 merged by jenkins-bot:

[mediawiki/extensions/WikibaseQualityConstraints@master] styles: Replace static values by Codex design tokens and fix todo

https://gerrit.wikimedia.org/r/1119784

Nikerabbit subscribed.
NOTE: Parking this on the "external" columns on LPL extensions for now since this is a shared task and we cannot properly triage such without creating subtasks.

Change #1128898 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] ui(PostEditPanel): replace static color with token

https://gerrit.wikimedia.org/r/1128898

@Volker_E can/should this also happen inside of SVGs? This seems to be the main use-case for GrowthExperiments. (There is one use in less-code which I will make a change for.)

(not assigning to me because this is a shared task)

@Michael Only when there were text in the SVG. #72777d continues to exist in our palette, just the usage as text color is problematic.

@Michael Only when there were text in the SVG. #72777d continues to exist in our palette, just the usage as text color is problematic.

Ah, this is only about text color? That one line in less code for GrowthExperiments is background: url( ../../images/try-new-task-ltr.svg ) no-repeat center/40px, #72777d;

I still have to double-check if the changed color makes sense there for light and dark-mode.

@Michael Only when there were text in the SVG. #72777d continues to exist in our palette, just the usage as text color is problematic.

Ah, this is only about text color? That one line in less code for GrowthExperiments is background: url( ../../images/try-new-task-ltr.svg ) no-repeat center/40px, #72777d;

I still have to double-check if the changed color makes sense there for light and dark-mode.

That is a background color behind an entirely opaque image. There is little point to doing that, I removed it. If the image is slow to load or fails to load, then the user will see the background of the overall notification in its place instead of a gray box, which makes much more sense to me.

That is a background color behind an entirely opaque image. There is little point to doing that, I removed it. If the image is slow to load or fails to load, then the user will see the background of the overall notification in its place instead of a gray box, which makes much more sense to me.

Great, thanks for the persistance!

Change #1128898 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] ui(PostEditPanel): drop background color behind opaque picture

https://gerrit.wikimedia.org/r/1128898

Michael unsubscribed.

Done on our end, removing this from our boards. Please ping me if there is anything else to do for us.

Change #1134377 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CodeMirror@master] ve.ui.CodeMirror.less: use @color-subtle var instead of hard-coding it

https://gerrit.wikimedia.org/r/1134377

Change #1134377 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] ve.ui.CodeMirror.less: use @color-subtle var instead of hard-coding it

https://gerrit.wikimedia.org/r/1134377

Change #1155639 had a related patch set uploaded (by SD0001; author: SD0001):

[mediawiki/extensions/SecurePoll@master] Use @color-subtle instead of #72777d

https://gerrit.wikimedia.org/r/1155639

jhsoby subscribed.

Done back in December–February for the Translate extension (T381834), so removing that tag.

Adding to relevant wikidata team board. @Arian_Bozorg we should pick this up whenever we're working on the NSLP next

Didn't know about this task, but made the same thing for MediaWiki-extensions-GlobalWatchlist in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalWatchlist/+/1211732 as a part of a bigger change. Is it what you need, and is it enough? Should I split this part to a new change?

Didn't know about this task, but made the same thing for MediaWiki-extensions-GlobalWatchlist in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalWatchlist/+/1211732 as a part of a bigger change. Is it what you need, and is it enough? Should I split this part to a new change?

That patch is great and sufficient, thanks!

Didn't know about this task, but made the same thing for MediaWiki-extensions-GlobalWatchlist in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalWatchlist/+/1211732 as a part of a bigger change. Is it what you need, and is it enough? Should I split this part to a new change?

That patch is great and sufficient, thanks!

Great. Now let's hope there will be somebody to approve it. Since, Danny left, there isn't so much interest in this extension.

Change #1211732 had a related patch set uploaded (by IKhitron; author: IKhitron):

[mediawiki/extensions/GlobalWatchlist@master] Prepare GlobalWatchlist for IP masking

https://gerrit.wikimedia.org/r/1211732

Change #1211732 merged by jenkins-bot:

[mediawiki/extensions/GlobalWatchlist@master] Prepare GlobalWatchlist for IP masking

https://gerrit.wikimedia.org/r/1211732