To better determine how to proceed in regards to T321354: [SPIKE] Draft scope for CSS-only subset of Codex, let's explore what CSS-only Codex components would look like for a very simple use-case: tweaking MediaWiki's Html class so that the elements produced match the equivalent Codex components. Elements that would need to be supported here:
- Buttons
- Checkboxes
- Text Inputs
- Messages
- Radio buttons
- Dropdown/Select (for Namespace Selector)
This work should be done as a proof-of-concept patch, and will probably never get merged (at least in its initial form). Instead, this code should help to inform the discussion around T321354: [SPIKE] Draft scope for CSS-only subset of Codex and its parent – does this approach make sense, are there any drawbacks to consider, etc.
Some specific questions that should be considered here include:
- How does this integrate with the design system?
- How could this impact with the architecture of the design system?
- How does this integrate with mediawiki?
- How far in scope does this need to be?
- What is the cost to build? What is the cost of maintenance?
The VueTest special page can be used as a sandbox to compare the HTML/CSS components with their JS equivalents.