mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 17:40:12 +00:00
62149265e9
- Rework Icon template into Button template to support all button variants - Update ULS helper functions in SkinVector - Update StickyHeader template to use the new Button template - Update Storybook Bug: T289815 Depends-on: Iba6cbbd6c6e48a1abfda342421822e3ff2715362 Change-Id: I718b3e05a988e20beb82d599e4168d497fa4c299
33 lines
778 B
JavaScript
33 lines
778 B
JavaScript
import template from '!!raw-loader!../includes/templates/StickyHeader.mustache';
|
|
import Button from '!!raw-loader!../includes/templates/Button.mustache';
|
|
|
|
const NO_ICON = {
|
|
icon: 'none',
|
|
'is-quiet': true,
|
|
class: 'sticky-header-icon'
|
|
};
|
|
|
|
const data = {
|
|
title: 'Audre Lorde',
|
|
heading: 'Introduction',
|
|
'is-visible': true,
|
|
'data-primary-action': {
|
|
id: 'p-lang-btn-sticky-header',
|
|
class: 'mw-interlanguage-selector',
|
|
'is-quiet': true,
|
|
label: '196 languages',
|
|
'html-vector-button-icon': `<span class="mw-ui-icon mw-ui-icon-wikimedia-language"></span>`
|
|
},
|
|
'data-button-start': NO_ICON,
|
|
'data-button-end': NO_ICON,
|
|
'data-buttons': [
|
|
NO_ICON, NO_ICON, NO_ICON, NO_ICON
|
|
]
|
|
};
|
|
|
|
export const STICKY_HEADER_TEMPLATE_PARTIALS = {
|
|
Button
|
|
};
|
|
|
|
export { template, data };
|