mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-11 07:26:10 +00:00
caed16e26f
Styling should not depend on IDs to allow us to have multiple searches in the page. Precursor for wiring up search in the sticky header. This also tweaks performance metrics to track separate metrics for the sticky header search Change-Id: I5b4192a8f5a9f95af26c1faf904f7cc994323518
19 lines
549 B
JavaScript
19 lines
549 B
JavaScript
import mustache from 'mustache';
|
|
import '../resources/skins.vector.styles/SearchBox.less';
|
|
|
|
import { searchBoxData, searchBoxDataWithCollapsing, searchBoxTemplate,
|
|
SEARCH_TEMPLATE_PARTIALS
|
|
} from './SearchBox.stories.data';
|
|
|
|
export default {
|
|
title: 'SearchBox'
|
|
};
|
|
|
|
export const searchBoxWithoutCollapsing = () => `
|
|
${mustache.render( searchBoxTemplate, searchBoxData, SEARCH_TEMPLATE_PARTIALS )}
|
|
`;
|
|
|
|
export const searchBoxWithCollapsing = () => `
|
|
${mustache.render( searchBoxTemplate, searchBoxDataWithCollapsing, SEARCH_TEMPLATE_PARTIALS )}
|
|
`;
|