mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
93745e4800
Per T289724#7342741, server renders an anchor tag pointing to #p-search into the "button-start" bucket of the sticky header. In the future after T289718, this anchor will then acts as a button when the search module is loaded and searchToggle executes. * skins.vector.search was modified to accomodate instantiating multiple search components (one in the main header and one in the sticky header). * searchToggle.js was modified to accept a searchToggle element as a param which the caller can then instantiate when ideal. For the sticky header toggle, this needs to happen *after* the search module loads. Before then, the toggle will act as a link. * Drops one jQuery usage from searchToggle so that it can be jQuery free. Because the native .closest method is used, IE11 support is also dropped. However, the script feature detects and returns early if the API isn't available. * Makes App.vue accept an `id` prop so that multiple instances of it can be created. Bug: T289724 Change-Id: I1c5e6eee75918a0d06562d07c31fdcbd5a4ed6d5 |
||
---|---|---|
.. | ||
.eslintrc.json | ||
ButtonsAndIcons.stories.js | ||
Footer.stories.data.js | ||
Footer.stories.js | ||
Header.stories.data.js | ||
Header.stories.js | ||
LanguageButton.stories.data.js | ||
LanguageButton.stories.js | ||
legacy.stories.js | ||
Logo.stories.data.js | ||
Logo.stories.js | ||
Menu.stories.data.js | ||
Menu.stories.js | ||
MenuDropdown.stories.data.js | ||
MenuDropdown.stories.js | ||
MenuPortal.stories.data.js | ||
MenuPortal.stories.js | ||
MenuTabs.stories.data.js | ||
MenuTabs.stories.js | ||
rawLoader.d.ts | ||
SearchBox.stories.data.js | ||
SearchBox.stories.js | ||
Sidebar.stories.data.js | ||
Sidebar.stories.js | ||
skin.stories.data.js | ||
StickyHeader.stories.data.js | ||
StickyHeader.stories.js | ||
types.js | ||
UserLinks.stories.data.js | ||
UserLinks.stories.js | ||
utils.js |