(Go: >> BACK << -|- >> HOME <<)

Page MenuHomePhabricator

Replace `icon-accessory` with `icon-subtle`
Closed, ResolvedPublic

Description

Background

We've replaced color-accessory with color-subtle in the color token nomenclature.
We should do the same with icon-accessory in order to make relations clear. It features 0.67. "Equals #555 on background-color: #fff`, closest to #54595d".
Often the icon CSS selectors have been close to the label selectors with color-accessory in the past.
The only time we currently use them is TextInputWidget in OOUI and Codex.

Codesearch

Acceptance criteria for Done

  • Replace opacity-icon-accessory with opacity-icon-subtle

Event Timeline

Restricted Application triaged this task as High priority. · View Herald TranscriptMar 7 2023, 5:11 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

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

[design/codex@main] tokens: Replace `opacity-icon-accessory` with `opacity-icon-subtle`

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

Change 895829 merged by jenkins-bot:

[design/codex@main] tokens: Replace `opacity-icon-accessory` with `opacity-icon-subtle`

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

Volker_E changed the task status from Open to In Progress.Mar 8 2023, 6:37 PM
Volker_E updated the task description. (Show Details)

Is opacity-icon-subtle being overridden/ignored somehow in the TextInput demo? Although the token is applied to the icons used by the TextInput component, these only display the colors color-base (enabled input), color-placeholder (resting input) and color-disabled (disabled input). This corresponds with the component's specs, where active field icons do not display any opacity either (they're color-base).

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

[mediawiki/core@master] mediawiki.less: Introduce @opacity-icon-subtle & deprecate `-accessory`

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

Change 896120 merged by jenkins-bot:

[mediawiki/core@master] mediawiki.less: Introduce @opacity-icon-subtle & deprecate `-accessory`

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

Is opacity-icon-subtle being overridden/ignored somehow in the TextInput demo? Although the token is applied to the icons used by the TextInput component, these only display the colors color-base (enabled input), color-placeholder (resting input) and color-disabled (disabled input). This corresponds with the component's specs, where active field icons do not display any opacity either (they're color-base).

Missed the fact that the opacity is intended for usage with the icons in the CSS only version of the TextInput component. All good!

Is opacity-icon-subtle being overridden/ignored somehow in the TextInput demo? Although the token is applied to the icons used by the TextInput component, these only display the colors color-base (enabled input), color-placeholder (resting input) and color-disabled (disabled input). This corresponds with the component's specs, where active field icons do not display any opacity either (they're color-base).

For completion, that's captured in https://gerrit.wikimedia.org/r/c/design/codex/+/896406/

Missed the fact that the opacity is intended for usage with the icons in the CSS only version of the TextInput component. All good!

Change 898895 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/core@master] Update Codex from v0.6.2 to v0.7.0

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