Background
As stated in T331403, from the 10 deprecated legacy tokens in WikimediaUI Base identified, changing the breakpoint variables has some disruptive potential. The change in user-interface presentation needs to be approached sensitively.
See current use of legacy breakpoint tokens (CodeSearch)
Goal
Why is it important?
We need to enable sunsetting WikimediaUI BaseWe went down a path, that removed this relation successfully- In order to not have devs looking at different sources of truth, needing to find their path towards Codex or even wrongly copying WikimediaUI Base vars over.
- Having different breakpoints blocks further work like unified responsiveness on design systems patterns or infrastructure like the coming Grid. See T337282: Implement Grid in Codex for the Codex part of it.
What's changing?
- Tablet breakpoint is decreased by 80px, pushing lesser devices into a mobile phone only experience.
- Desktop and desktop-wide kicks in later, by 120px and 480px each.
Specifically latter change will need a closer look when testing the patches.
@width-breakpoint-tablet: 720px; /* Codex: @min-width-breakpoint-tablet is 640px */ @width-breakpoint-desktop: 1000px; /* Codex: @min-width-breakpoint-desktop is 1120px */
Update Codex 1.4.0. These breakpoints haven't been used anywhere in our environment again and were removed in 1.4.0.
// Removed in v1.4.0 @width-breakpoint-desktop-wide: 1200px; /* Codex: @min-width-breakpoint-desktop-wide is 1680px */ @width-breakpoint-desktop-extrawide: 2000px; /* Neither A nor B: unique value, no replacement suggested */
Note, that extrawide is not used in our environment. It was defined in Flow, but never got any other use case.
Acceptance criteria
Replace all mentioned tokens from
- MediaWiki core
- MinervaNeue (tracked in T366208)
- MobileFrontend
- RelatedArticles (tracked in T366208)
- MobileFrontend
- Desktop Improvements (Vector 2022)
- MediaWiki-extensions-WikimediaEvents
How to fix
- Replace @width-breakpoint-* CodeSearch
- Replace equivalent numeric pixel values in JS window.matchMedia() occurrences
- Remove them from Codex
- Remove them from mediawiki.skin.defaults.less
Non-blocking
- skin MediaWikiWordPressThemes
- mobile apps wikimedia page library – Needs to be updated for a while with a number of CSS fixes, up to apps supervisors.
- DataMaps; filed issue at https://github.com/alex4401/mediawiki-extensions-DataMaps/issues/281