mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 17:40:12 +00:00
cb7ca11274
The .menu class historically only needs to apply to dropdowns. the .vectorMenuCheckbox is inconsistent with the other classes on the menu so we should begin its deprecation. Bug: T253329 Change-Id: I00b4d2fd795195cd9c8add650a3b3cafdced5465
23 lines
835 B
Plaintext
23 lines
835 B
Plaintext
{{!
|
|
See @typedef MenuDefinition
|
|
}}
|
|
<div id="{{id}}" {{#class}}class="{{.}}"{{/class}} aria-labelledby="{{label-id}}" {{{html-tooltip}}}
|
|
{{{html-userlangattributes}}}>
|
|
{{#is-dropdown}}
|
|
<input type="checkbox" class="vectorMenuCheckbox vector-menu-checkbox" aria-labelledby="{{label-id}}" />
|
|
{{/is-dropdown}}
|
|
<h3 id="{{label-id}}">
|
|
<span>{{label}}</span>
|
|
</h3>
|
|
{{! `body` class for backwards compatibility but let editors know not to use
|
|
it via HTML comment below: }}
|
|
<!-- Please do not use the .body class, it is deprecated. -->
|
|
<div class="body vector-menu-content">
|
|
<!-- Please do not use the .menu class, it is deprecated. -->
|
|
<ul class="{{list-classes}}">{{{html-items}}}</ul>
|
|
{{{html-after-portal}}}
|
|
</div>
|
|
</div>
|
|
{{! Note: html-hook-vector-after-toolbox is deprecated. }}
|
|
{{{html-hook-vector-after-toolbox}}}
|