mediawiki-skins-Vector/includes/templates/Button.mustache
bwang 58b6831e4d Rely on core to provide accesskey/title attributes, update search toggle location in DOM
Bug: T299980
Depends-on: Ide214de5f246b38689799e20db9e8a4671d9b7ac
Change-Id: I43eb04ec095cc9c1d683df9da05887595c2eddfb
2022-04-14 13:53:07 -07:00

12 lines
497 B
Plaintext

{{#href}}<a href="{{.}}"{{/href}}
{{^href}}<button{{/href}}
{{#id}}id="{{.}}"{{/id}}
{{#tabindex}}tabindex="{{.}}"{{/tabindex}}
{{#event}}data-event-name="{{.}}"{{/event}}
{{#title}}title="{{.}}"{{/title}}
{{#accesskey}}accesskey="{{.}}"{{/accesskey}}
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}}