Page MenuHomePhabricator

Deprecate and replace mediawiki.ui components
Open, Needs TriagePublic

Description

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

Buttons:
@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
core

  • Special:GlobalRenameQueue

extensions:

  • Html2Wiki
  • ULS per JS

Exemplified:
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

Volker_E created this task.Dec 5 2017, 12:19 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 5 2017, 12:19 AM

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

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

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

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

Volker_E updated the task description. (Show Details)May 1 2018, 12:03 AM
Volker_E updated the task description. (Show Details)
Volker_E updated the task description. (Show Details)May 1 2018, 12:22 AM
Krinkle added a project: MediaWiki-Interface.
Volker_E updated the task description. (Show Details)May 4 2018, 12:26 AM
Jdlrobson updated the task description. (Show Details)May 4 2018, 12:52 AM
Volker_E updated the task description. (Show Details)Dec 16 2018, 11:04 PM
Volker_E added a subscriber: Krinkle.