mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-17 20:52:14 +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
9 lines
315 B
Plaintext
9 lines
315 B
Plaintext
{{#href}}<a href="{{.}}"{{/href}}
|
|
{{^href}}<button{{/href}}
|
|
id="{{id}}"
|
|
class="mw-ui-button {{#is-quiet}}mw-ui-quiet{{/is-quiet}} {{#icon}}mw-ui-icon mw-ui-icon-element mw-ui-icon-{{.}}{{/icon}} {{class}}">
|
|
{{{html-vector-button-icon}}}
|
|
<span>{{label}}</span>
|
|
{{#href}}</a>{{/href}}
|
|
{{^href}}</button>{{/href}}
|