Page MenuHomePhabricator

Deprecate and replace mediawiki.ui components
Open, Needs TriagePublic


Coming from MinervaNeue default payload question:

We're still loading mediawiki.ui component code per default.
We should evaluate and remove styles from rendering-critical CSS

  • Deprecate mediawiki.ui

@Jdlrobson brought up the idea of reducing the CSS to load only normal state of button elements. When looking into mediawiki.ui/components/buttons.less it seems reasonably framed to progress. T193821
mediawiki.ui button-group

  • Special:GlobalRenameQueue


  • Html2Wiki
  • ULS per JS

mediawiki.ui checkbox is currently still in use in:

  • core
    • HTMLMultiSelectField.php
    • HTMLCheckMatrix.php
    • Xml.php
  • Extension:InputBox
  • Extension:MobileFrontend
  • Extension:Translate
  • Extension:UniversalLanguageSelector

mediawiki.ui radio:

Those should be replaced by similar OOUI PHP widgets and removed from loaded modules.

mediawiki.ui utilities

  • .mw-ui-flush-left
  • .mw-ui-flush-right
  • .mw-ui-center-block

Event Timeline

mediawiki.ui inputs of type=search should be deprecated already. Everyone who wants to use such apart from OOUI needs to be aware of the vendor specific extensions of this HTML5 input type. AFAIK there's currently no usage of .mw-ui-input together with type=search any more.

Change 429160 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/Flow@master] Remove unused CSS for MWUI components

Change 429160 merged by jenkins-bot:
[mediawiki/extensions/Flow@master] Remove unused CSS for MWUI components

Volker_E updated the task description. (Show Details)

Change 612397 had a related patch set uploaded (by VolkerE; owner: VolkerE):
[mediawiki/core@master] mediawiki.ui: Deprecate all sub-modules

Change 612397 abandoned by VolkerE:
[mediawiki/core@master] mediawiki.ui: Deprecate all sub-modules