Page MenuHomePhabricator

Replace core Message Box styles with Codex equivalents
Open, Stalled, LowPublic

Description

Can we replace the existing mw.ui Message Box styles with a new "CSS-only" version of the Message component?

This task is a spin-off from T321351: [EPIC] Add CSS-only components:

The big benefit of this work would presumably be icons and buttons in the web team, but I'd like to see the CSS mixin approach applied to cdx-message before approaching this use case to confirm its viable - https://github.com/wikimedia/mediawiki/blob/master/resources/src/mediawiki.skinning/messageBoxes.less is our current legacy CSS for that (which is supposed to be synced with Codex) and the HTML is generated in https://github.com/wikimedia/mediawiki/blob/b8abc26010416ecc4b7d5576ecc50c37c3eb0519/includes/Html.php#L744
Is this something we can try first ?

Event Timeline

@Jdlrobson One of the shortcomings in your comment from my understanding is, that the core MessageBox styles are also in use by the Installer. We need to have the styles in this file. A mediawiki.UI replacement wouldn't suffice here.

Volker_E renamed this task from Replace mw-ui MessageBox styles with Codex equivalents to Replace core Message Box styles with Codex equivalents.Jan 10 2023, 1:20 AM
ldelench_wmf moved this task from Requests to Needs Refinement on the Design-Systems-Team board.
ldelench_wmf added a subscriber: ldelench_wmf.

Adjusted priority based on priority of the parent epic, T321351. Feel free to edit!

ldelench_wmf lowered the priority of this task from High to Low.Feb 13 2023, 5:27 PM

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

[mediawiki/core@master] [POC] Use Codex styles on message box component

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