Page MenuHomePhabricator

Remove 'mediawiki.ui.icon' module
Open, HighPublic

Description

Current search reveals usage of 'mediawiki.ui.icon' module in

Phase 1

  • ULS
  • MMV
  • Popups
  • Minerva and MobileFrontend
  • Mark module as deprecated

Phase 2 - all usages

  • ContentTranslation (covered in T340259)
  • On April 29th we (Bartosz, Jon Robson) removed support for the unused mw-ui-icon-small and mw-ui-icon-flush-top and mw-ui-icon-flush-left to avoid further adoption.

Phase 3

  • Remove outdated class .mw-ui-icon-with-label-desktop only in use begin of Vector 2022 development – to reduce mental load when removing module and save some bytes in the meantime for remaining use cases
  • Flow/includes/View.php <doing>
  • Example skin - https://gerrit.wikimedia.org/r/c/mediawiki/skins/Example/+/922957
  • Remove 'mediawiki.ui.icon' module

All of above usages should be removed and replaced by Codex (/OOUI) icon modules. And the module itself be removed as result.

This work is tackled alongside

Related Objects

Event Timeline

Jdlrobson changed the task status from Open to Stalled.Oct 23 2019, 5:27 PM

I'm not sure what the practical replacement would be. Ideally they'd be a mixin exposed by wikimedia UI for these cases. We are not going to be able to ship an entire OOjs UI stylesheet just to render a single icon in Popups, which loads on all pages, are we?

Unless you have an exact solution in mind for how to use OOUI in Popups, I think is stalled on T159738.
Personally I think this is not a top priority right now.

Jdlrobson updated the task description. (Show Details)

ContentTranslation and Flow are the last remaining consumers of this library.

I don't think the Flow case is worth tackling given it's planned undeploy, T350164. Unless that is blocking the removal of the module.

Volker_E updated the task description. (Show Details)
Volker_E updated the task description. (Show Details)

Change #1025416 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Remove unused .mw-ui-icon-flush-top, -left, -right classes

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

Change #1025417 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Remove unused .mw-ui-icon-small class

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

Change #1025416 merged by jenkins-bot:

[mediawiki/core@master] Remove unused .mw-ui-icon-flush-top, -left, -right classes

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

Change #1025417 merged by jenkins-bot:

[mediawiki/core@master] Remove unused .mw-ui-icon-small class

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

Volker_E renamed this task from Remove 'mediawiki.ui.icon' to Remove 'mediawiki.ui.icon' module.Mar 20 2026, 1:24 AM

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

[mediawiki/skins/MinervaNeue@master] docs: Remove mentions of MediaWiki UI icons

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

Change #1255925 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] docs: Remove obsolete mention of MediaWiki UI icons

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

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

[mediawiki/skins/Example@master] Remove 'mediawiki.ui' dependencies

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

Change #922957 merged by jenkins-bot:

[mediawiki/skins/Example@master] Remove 'mediawiki.ui' dependencies

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

Volker_E changed the task status from Stalled to Open.Mar 30 2026, 7:29 AM
Volker_E updated the task description. (Show Details)

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

[mediawiki/core@master] mediawiki.ui: Remove outdated `mw-ui-icon-with-label-desktop``

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

Change #1264324 merged by jenkins-bot:

[mediawiki/core@master] mediawiki.ui: Remove outdated `mw-ui-icon-with-label-desktop``

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