Problem
The Special:NewLexeme's user interface was styled using WiKit tokens. With the WiKit design system being superseded by Codex, the official Wikimedia design system, the utilization of WiKit tokens is not recommended. These styles should be replaced in order to unblock the deprecation of the legacy system, to reduce maintenance costs and ensure consistency.
Solution
We have to replace the WiKit mixins used to style the Special:NewLexeme's font styles by sets of Codex tokens.
Here's an overview of files that contain WiKit typography mixins and font tokens to be replaced (when applicable):
File | Style | Replacement |
NewLexemeForm.vue | .wbl-snl-copyright includes the WiKit typography mixin small-text, and a couple of extra tokens font-size: 0.8125rem;, font-style: italic;, all needs to be replaced by the corresponding Codex style | We'll use the tokens corresponding to the Codex style "Body S", which should translate to an equivalent ≈12px font in context due to Vector's font size override: | Please note that the italics style is replaced by regular (Italics can interfere with readability and a11y, specially if combined with such small print).
RequiredAsterisk.vue | .wbl-snl-required-asterisk: $font-size-xxlarge; | Under Codex guidelines, the asterisk is not the standard to indicate required fields anymore. If we had arguments to keep it, then we can preserve that same token, which matches Codex already |
SearchExisting.vue | .wbl-snl-search-existing includes the WiKit typography mixin body, which needs to be replaced by the corresponding Codex tokens | We'll use the tokens corresponding to the Codex style "Body M", which should translate to a 14px size font in context due to Vector's font size override: |
Acceptance criteria
- WiKit tokens used to define the font styles of the Special:NewLexeme page are replaced by Codex tokens