Page MenuHomePhabricator

[Icons] Bring mediawiki-ui-icon colors in line with Codex
Closed, ResolvedPublic

Description

Styles for mw-ui-icon are inconsistent with Codex. We can update these now with no need for a feature flag.

TODO

We will align the following:

  • Align Hover background colors (Core change)
  • Align Icon glyph colors to #222 (Vector change)

QA

Event Timeline

Jdlrobson triaged this task as Medium priority.Sep 14 2022, 6:45 PM
Jdlrobson updated the task description. (Show Details)

Change 832002 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] MediaWiki UI: Bring colors in line with latest Codex

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

Change 832351 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Icons: Set icon colors from #000 to #202122

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

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

[mediawiki/skins/Vector@master] mediawiki.skin.variables: Add Opacities to skin.defaults variables

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

Change 832719 merged by jenkins-bot:

[mediawiki/skins/Vector@master] mediawiki.skin.variables: Add Opacities to skin.defaults variables

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

Change 832351 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Icons: Globally set icon colors to `@opacity-icon-base`

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

The new colors (for icons) should be available on the beta cluster now.

Still working on the hover colors.

The new colors (for icons) should be available on the beta cluster now.

On beta it seems that all icons are now #222222. They should be #202122.

@alexhollender_WMF With the current icon system, where the icons start from fill color #000 we can only achieve approximations. #222 is – in balancing code complexity and maintenance – the closest. In the past we set out to call this acceptable.

@alexhollender_WMF With the current icon system, where the icons start from fill color #000 we can only achieve approximations. #222 is – in balancing code complexity and maintenance – the closest. In the past we set out to call this acceptable.

thanks for clarifying. @bmartinezcalvo should we update this in Figma to avoid potential confusion?

@alexhollender_WMF Just for completion and general visibility: The implementation in Codex follows the text color and is #202122 in such case.
Technically we couldn't do this back then and opacity just makes icons reach same R, G and B channel numbers, so #222 is closest and it's barely noticeable for normal pair of eyes. So while Codex outputs #202122, OOUI/MediaWiki won't be able to provide the same in close future.
it's a small detail to know for designers, it's still better to keep the icons in Figma in #202122 with a note about implementation details IMO.

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

[mediawiki/core@master] mediawiki.ui: Update hover background color of quiet icon buttons

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

Change 833994 merged by jenkins-bot:

[mediawiki/core@master] mediawiki.ui: Update hover background color of quiet icon buttons

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

Change 832002 abandoned by Jdlrobson:

[mediawiki/core@master] MediaWiki UI: Bring colors in line with latest Codex

Reason:

https://gerrit.wikimedia.org/r/c/mediawiki/core/+/833994

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

Change 832002 restored by Jdlrobson:

[mediawiki/core@master] MediaWiki UI: Bring colors in line with latest Codex

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

Change 832002 abandoned by Jdlrobson:

[mediawiki/core@master] MediaWiki UI: Bring colors in line with latest Codex

Reason:

See https://gerrit.wikimedia.org/r/c/mediawiki/core/+/832328

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

Volker_E renamed this task from [Icons] Bring mw-ui-icon colors in line with Codex to [Icons] Bring mediawiki-ui-icon colors in line with Codex.Sep 23 2022, 7:53 AM
Volker_E updated the task description. (Show Details)

@Jdlrobson @Volker_E this is difficult to measure (it computes as rgba(0, 24, 73, 0.027), and I can't figure out how to convert that to HEX. When I take a screenshot and sample it I get #F9FAFB, which is off ever so slightly: #F9FAFB vs. #F9FAFA.

image.png (296×352 px, 9 KB)

Jdlrobson added a subscriber: NBaca-WMF.

@Volker_E @NHillard-WMF I'm moving this off the board as I think we're done here from the web team side, but could you also get an answer to Alex (and document it in the styleguide) so we have a better shared understanding of these slight differences before resolving this ticket?

@Jdlrobson @Volker_E this is difficult to measure (it computes as rgba(0, 24, 73, 0.027), and I can't figure out how to convert that to HEX. When I take a screenshot and sample it I get #F9FAFB, which is off ever so slightly: #F9FAFB vs. #F9FAFA.

image.png (296×352 px, 9 KB)

Long story short: You can't rely on browsers for color perfection, due to their different rendering engines and slight vagueness in rounding up/down. Chrome gives me #f9fafa

image.png (1×1 px, 453 KB)
.

Jdlrobson updated the task description. (Show Details)