mediawiki-skins-Vector/includes/Components
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
..
VectorComponent.php
VectorComponentDropdown.php Refactor: PageTools composes several different components 2022-12-12 22:17:24 +00:00
VectorComponentIconLink.php Component: UserLinks 2023-01-11 21:48:11 +00:00
VectorComponentLanguageButton.php Refactor: Remove unnecessary function getULSButtonData 2023-01-09 22:52:17 +00:00
VectorComponentLanguageDropdown.php LanguageDropdown: Check if the page is in talk namespaces instead 2023-01-13 14:44:49 +08:00
VectorComponentMainMenu.php Use features.js for main menu pinning functionality 2022-12-16 12:56:54 -06:00
VectorComponentMainMenuAction.php VectorComponentMainMenuAction: Have class to distinguish between different actions 2022-11-28 20:15:16 +00:00
VectorComponentMainMenuActionLanguageSwitchAlert.php VectorComponentMainMenuAction: Have class to distinguish between different actions 2022-11-28 20:15:16 +00:00
VectorComponentMainMenuActionOptOut.php VectorComponentMainMenuAction: Have class to distinguish between different actions 2022-11-28 20:15:16 +00:00
VectorComponentMenu.php Component: UserLinks 2023-01-11 21:48:11 +00:00
VectorComponentMenuListItem.php Add missing ID param to VectorComponentMenuListItem constructor 2023-01-26 22:08:04 +00:00
VectorComponentMenuVariants.php Component: VariantsMenu 2023-01-11 23:05:41 +00:00
VectorComponentPageTools.php Rename VectorComponentPinnedContainer to VectorComponentPinnableContainer to match template files 2022-12-15 22:46:46 +00:00
VectorComponentPinnableContainer.php Rename VectorComponentPinnedContainer to VectorComponentPinnableContainer to match template files 2022-12-15 22:46:46 +00:00
VectorComponentPinnableElement.php Refactor: PageTools composes several different components 2022-12-12 22:17:24 +00:00
VectorComponentPinnableHeader.php Remove -pinnable-element postfix from PinnableElement.mustache 2022-12-15 22:46:51 +00:00
VectorComponentSearchBox.php Fix casing of class and function name usages 2022-12-04 19:14:54 +00:00
VectorComponentStickyHeader.php Remove VectorComponentTableOfContentsContainer in favor of directly using VectorComponentPinnableContainer, 2023-01-16 17:20:03 -06:00
VectorComponentTableOfContents.php Remove VectorComponentTableOfContentsContainer in favor of directly using VectorComponentPinnableContainer, 2023-01-16 17:20:03 -06:00
VectorComponentUserLinks.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