mediawiki-skins-Vector/includes
bwang 9e4bdd00bf Remove custom handling of user links menu items and handle case when anon editor links are disabled
Rather than try to build individually build login, logout, and create account menu items, we handle them the same as all other user links menu items in Hooks.php. While Hooks isnt ideal, there currently isnt a good path for moving that code to SkinComponents until core provides menu data. In the meantime, this patch reduces code complexity and prevents bugs like T324638.
This approach also allows us to move user links logic from SkinVector22 to VectorComponentUserLinks.php, and ensures the user links dropdown contains multiple menus, which allows us to reuse styles from page tools dropdowns.

Expected 11 visual changes:
* minor visual change where the user links dropdown has an
additional 4px vertical padding.
This padding was originally added to the page tools dropdowns
per Alex's request, but Alex also said that dropdowns should share
the same spacing. This change makes the styles all consistent
* Order of talk and contribution links have been swapped

Bug: T289212
Bug: T319356
Bug: T328954
Change-Id: Iac0586893fec26a8a6c2c904ce08fbf1e19b339c
2023-02-09 13:37:17 -06:00
..
Components Remove custom handling of user links menu items and handle case when anon editor links are disabled 2023-02-09 13:37:17 -06:00
FeatureManagement Use features.js for main menu pinning functionality 2022-12-16 12:56:54 -06:00
ResourceLoader Use new ResourceLoader namespace 2022-05-25 10:36:40 +00:00
Services Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
templates Remove custom handling of user links menu items and handle case when anon editor links are disabled 2023-02-09 13:37:17 -06:00
Constants.php Make sticky header edit the default 2023-01-24 19:48:48 +00:00
Hooks.php Remove custom handling of user links menu items and handle case when anon editor links are disabled 2023-02-09 13:37:17 -06:00
ServiceWiring.php Make sticky header edit the default 2023-01-24 19:48:48 +00:00
SkinVector22.php Remove custom handling of user links menu items and handle case when anon editor links are disabled 2023-02-09 13:37:17 -06:00
SkinVectorLegacy.php Dead code elimination: updateDropdownMenuData 2023-01-12 00:33:28 +00:00
VectorServices.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00