Background
Per the work done as a part of this epic, we should
- build an empty page with only the type scale with various modes to test the revised type scale and font modes in a more controlled environment.
- test in MediaWiki and
- provide the coming change and test results with Web and maybe other teams to ensure awareness ahead
Product and dev notes
While at normal scale the change should have barely any impact, there's one intended exceptions
- line-height is going to be changing slightly "by a negligible amount" across the board.
Lookup table of value changes
| Design token Less var | OLD: current | NEW: default (medium) | small | large | x-large |
|---|---|---|---|---|---|
| @font-size-x-small | 0.75rem | 0.75rem | 0.625rem | 0.875rem | 1rem |
| @font-size-small | 0.875rem | 0.875rem | 0.75rem | 1rem | 1.125rem |
| @font-size-medium | 1rem | 1rem | 0.875rem | 1.125rem | 1.25rem |
| @font-size-large | 1.125rem | 1.125rem | 1rem | 1.25rem | 1.375rem |
| @font-size-x-large | 1.25rem | 1.25rem | 1.125rem | 1.375rem | 1.5rem |
| @font-size-xx-large | 1.5rem | 1.5rem | 1.375rem | 1.625rem | 1.75rem |
| @font-size-xxx-large | 1.75rem | 1.75rem | 1.625rem | 1.875rem | 2rem |
| @line-height-xxx-small | 1.25 | 1.25rem | 1.125rem | 1.375rem | 1.625rem |
| @line-height-xx-small | 1.375 | 1.375rem | 1.25rem | 1.625rem | 1.75rem |
| @line-height-x-small | none | 1.4285714rem | 1.125rem | 1.625rem | 1.75rem |
| @line-height-small | 1.5714285 | 1.5714285rem | 1.25rem | 1.75rem | 1.875rem |
| @line-height-medium | 1.6 | 1.625rem | 1.375rem | 1.75rem | 1.875rem |
| @line-height-large | none | 1.75rem | 1.625rem | 1.875rem | 2rem |
| @line-height-x-large | none | 1.875rem | 1.75rem | 2rem | 2.125rem |
| @line-height-xx-large | none | 2.125rem | 2rem | 2.25rem | 2.375rem |
| @line-height-xxx-large | none | 2.375rem | 2.25rem | 2.5rem | 2.625rem |
E.g. line-height-medium occurrences in our codebases
MediaWiki environment
A PatchDemo with pixel comparison test of at least
- Special:Preferences
- Special:ContentTranslation
- Special:Block with Multiblocks enabled (see T387983)
- two articles pages, with decent Template usage
Acceptance criteria
Sandbox
- Provide visual sample of this pages hierarchy/design
- Type page with font mode switcher is created
- Type page is reviewed and any issues are noted
- Set up appearance menu to mimic Vector text size switcher and test all components at different sizes
MediaWiki
- A Patchdemo instance is set up with the font modes patch included
- Review the following and note any issues
- Special:Preferences (OOUI; no changes)
- Special:ContentTranslation
- Multiblocks (one issue found; commented on font modes patch)
- MediaSearch (no issues found)
- Two article pages (no issues found)
- QuickSurveys (slight issues found with scaling)
- NearbyPages (no issues found)
- A Codex message box on an article page (no issues found)
- MinervaNeue
- Monobook, see T392253
- As teams to test features that heavily use Codex that we can't easily test ourselves
- Wikifunctions, see T390235
- Something from Growth
Pixel
- Pixel tests are reviewed once the font modes patch is merged and any issues are noted in tasks
Issues found during review
Checking these indicates we've created a separate task for them:




