mediawiki-skins-Vector/includes
jdlrobson 6998c536d4 Both UserMenu stylesheets should be shipped in modern
Since we have feature flagged the new user menu feature, it is
imperative we load both sets of styles until the feature has
shipped. This allows us to switch seamlessly between the two
without worrying about cached HTML being served with updated CSS.

To do this, we add a new class to both user menu's distinguishing
the legacy version from the modern version. The styles are then
scoped to these new selectors.

This also fixes some regressions with the legacy user menu in
modern Vector when wgVectorConsolidateUserLinks is disabled.

Notes:
* No caching selector is needed for #pt-userpage given it can only
ever be output for logged in users.
* ID selectors in general are bad, so scoping to mw-portlet-personal-user-menu-legacy
isolates the legacy component allowing it to be rendered alongside the modern UserMenu

Bug: T276561
Change-Id: I068c5233bb25a7b141e66a6726b5761841f83eb2
2021-05-14 10:13:09 -07:00
..
FeatureManagement Allow languageinheader query param to fully control treatment of languages 2021-05-13 12:04:12 -06:00
HTMLForm/Fields build: Updating mediawiki/mediawiki-codesniffer to 33.0.0 2020-11-17 23:33:50 +01:00
templates Remove mw-body-content from HTML that is not the article body 2021-05-14 00:01:52 +00:00
Constants.php Consolidate user links into personal dropdown menu for logged users. 2021-05-06 12:49:39 -07:00
Hooks.php Consolidate user links into personal dropdown menu for logged users. 2021-05-06 12:49:39 -07:00
ServiceWiring.php Consolidate user links into personal dropdown menu for logged users. 2021-05-06 12:49:39 -07:00
SkinVector.php Both UserMenu stylesheets should be shipped in modern 2021-05-14 10:13:09 -07:00
SkinVersionLookup.php Use User->isRegistered(), not deprecated isLoggedIn() 2020-12-19 16:44:06 +00:00
VectorServices.php hooks: Don't use SkinVersionLookup directly 2020-08-18 11:40:48 +01:00