mediawiki-skins-Vector/stories
Nicholas Ray 93745e4800 Add search to sticky header
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
2021-09-14 16:58:07 -07:00
..
.eslintrc.json Language button is quiet with focus, active and hover states 2021-03-01 20:01:45 +00:00
ButtonsAndIcons.stories.js [storybook] ButtonAndIcons should use Button template 2021-09-08 19:32:31 +00:00
Footer.stories.data.js Language button is quiet with focus, active and hover states 2021-03-01 20:01:45 +00:00
Footer.stories.js Storybook: Consistent styling 2021-05-27 19:27:21 +00:00
Header.stories.data.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
Header.stories.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
LanguageButton.stories.data.js [storybook] Document button usage and update broken stories 2021-09-07 21:23:33 +00:00
LanguageButton.stories.js [storybook] Document button usage and update broken stories 2021-09-07 21:23:33 +00:00
legacy.stories.js Storybook should include UserLinks 2021-05-27 19:27:27 +00:00
Logo.stories.data.js [Storybook] Fix PNG/SVG asset resolution. 2020-09-25 12:52:05 +02:00
Logo.stories.js [modern] A new version of Vector with a new logo 2020-04-30 14:11:54 -07:00
Menu.stories.data.js Update user links storybook 2021-06-21 21:34:35 +00:00
Menu.stories.js Storybook should include UserLinks 2021-05-27 19:27:27 +00:00
MenuDropdown.stories.data.js [storybook] Document button usage and update broken stories 2021-09-07 21:23:33 +00:00
MenuDropdown.stories.js Storybook: Consistent styling 2021-05-27 19:27:21 +00:00
MenuPortal.stories.data.js Remove reference to BaseTemplateAfterPortlet 2021-06-22 15:02:01 +00:00
MenuPortal.stories.js Refactor: Portal is also a Menu 2020-05-07 16:56:59 -07:00
MenuTabs.stories.data.js Drop unsupported skin CSS classes 2020-10-01 19:50:24 +00:00
MenuTabs.stories.js Storybook: Consistent styling 2021-05-27 19:27:21 +00:00
rawLoader.d.ts [Storybook] Fix PNG/SVG asset resolution. 2020-09-25 12:52:05 +02:00
SearchBox.stories.data.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
SearchBox.stories.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
Sidebar.stories.data.js Simplify menu code 2021-01-04 19:02:34 +00:00
Sidebar.stories.js Storybook: Consistent styling 2021-05-27 19:27:21 +00:00
skin.stories.data.js [refactor] SearchBox uses Icon template partial 2021-09-09 18:57:37 +00:00
StickyHeader.stories.data.js Add search to sticky header 2021-09-14 16:58:07 -07:00
StickyHeader.stories.js Build the sticky header skeleton 2021-09-01 12:32:31 -07:00
types.js [storybook] Document button usage and update broken stories 2021-09-07 21:23:33 +00:00
UserLinks.stories.data.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
UserLinks.stories.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
utils.js [storybook] Document button usage and update broken stories 2021-09-07 21:23:33 +00:00