mediawiki-skins-Vector/resources/skins.vector.js
Jan Drewniak e4af2b5df3 Prevent addPortletLinkHandler from looping over links twice
- Prevents the addPortletLinkHandler function from looping
over the same links multiple times by indexing
the HTMLElement instead of just the ID, which is an
optional parameter.
- Conditionally adds the icon class if the ID parameter
exists.
- Refactors the function to calculate the width of the
vector toolbar.
- Adds Jest tests to account for the dual icon scenario
and updates existing Jest tests.

Bug: T327369
Change-Id: I2a0934405efebd0e95919bc523d711866236a7e6
2023-02-16 20:05:54 +00:00
..
checkbox.js Use JS to move the ToC into page title to fix a11y issues and simplify styles 2022-12-05 17:24:55 -06:00
dropdownMenus.js Prevent addPortletLinkHandler from looping over links twice 2023-02-16 20:05:54 +00:00
echo.js Drop the VisualEnhancementsNext feature flag 2022-11-21 13:27:34 -08:00
languageButton.js Improve wikibase interlanguage link styles 2023-02-03 14:14:08 -05:00
menuTabs.js Add vector-tab-noicon class to tabbed menus when menu items are added by gadgets 2022-10-20 18:21:58 -06:00
searchLoader.js Remove code to disable new search on Wikidata 2023-01-05 13:39:34 +01:00
sidebarPersistence.js Bug: Fix when Vector 2022 sidebar collapses 2022-12-01 01:05:37 +00:00
skin.js Move limitedWidthToggle.js and features.js to skins.vector.es6 module 2022-12-07 16:45:52 -07:00
watchstar.js Drop unnecessary watchstar icon classes on toggle 2022-11-14 13:54:16 -08:00