mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
2a4ac3152b
Cleaned 'vector-menu' in SkinVector file, updated includes/templates/Menu.mustache and includes/templates/legacy/Menu.mustache. Bug: T290281 Change-Id: I7286fa82abfd437a228b9ac07ac781210d7cd98f
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
{{!
|
|
See @typedef MenuDefinition
|
|
}}
|
|
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
|
|
|
|
<nav id="{{id}}" class="vector-menu{{#class}} {{.}}{{/class}}" aria-labelledby="{{id}}-label" role="navigation" {{{html-tooltip}}} {{{html-user-language-attributes}}}>
|
|
{{#is-dropdown}}
|
|
<input type="checkbox"
|
|
id="{{id}}-checkbox"
|
|
role="button"
|
|
aria-haspopup="true"
|
|
data-event-name="ui.dropdown-{{id}}"
|
|
class="vector-menu-checkbox{{#checkbox-class}} {{.}}{{/checkbox-class}}"
|
|
aria-labelledby="{{id}}-label"
|
|
/>
|
|
<label
|
|
id="{{id}}-label"
|
|
{{#aria-label}} aria-label="{{.}}"{{/aria-label}}
|
|
class="vector-menu-heading{{#heading-class}} {{.}}{{/heading-class}}"
|
|
>
|
|
{{{html-vector-heading-icon}}}<span class="vector-menu-heading-label">{{label}}</span>
|
|
</label>
|
|
{{/is-dropdown}}
|
|
{{^is-dropdown}}
|
|
<h3
|
|
id="{{id}}-label"
|
|
{{#aria-label}} aria-label="{{.}}"{{/aria-label}}
|
|
class="vector-menu-heading{{#heading-class}} {{.}}{{/heading-class}}"
|
|
>
|
|
{{{html-vector-heading-icon}}}<span class="vector-menu-heading-label">{{label}}</span>
|
|
</h3>
|
|
{{/is-dropdown}}
|
|
<div class="vector-menu-content">
|
|
{{{html-before-portal}}}
|
|
<ul class="vector-menu-content-list">{{{html-items}}}</ul>
|
|
{{{html-after-portal}}}
|
|
</div>
|
|
</nav>
|