mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-25 08:05:51 +00:00
e3abac06a6
* We add the `.mw-interlanguage-selector` class to the .vector-menu-heading in the server rendered HTML. `ext.uls.interface.js` later attaches a click handler to this selector that loads the rest of ULS. * We hide the dropdown arrow for js users and only show it again if ext.uls.interface module isn't installed or is not being loaded. * When the `ext.uls.interface` module has been loaded, we hide the checkbox and checkbox hack menu in favor of showing the ULS popover. Additionally: * Adds '.vector-menu-heading' class to menu headings. * Change h3 selector to `.vector-menu-heading`. Bug: T273232 Change-Id: I6f4572c16ca4096dcda3aac4d585003b93dcccfa
19 lines
727 B
Plaintext
19 lines
727 B
Plaintext
{{!
|
|
See @typedef MenuDefinition
|
|
}}
|
|
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
|
|
<!-- Please do not use role attribute as CSS selector, it is deprecated. -->
|
|
<nav id="{{id}}" {{#class}}class="{{.}}"{{/class}} aria-labelledby="{{id}}-label" role="navigation" {{{html-tooltip}}}
|
|
{{{html-user-language-attributes}}}>
|
|
{{#is-dropdown}}
|
|
<input type="checkbox" class="vector-menu-checkbox" aria-labelledby="{{id}}-label" />
|
|
{{/is-dropdown}}
|
|
<h3 id="{{id}}-label" {{#heading-class}}class="{{.}}"{{/heading-class}}>
|
|
<span>{{label}}</span>
|
|
</h3>
|
|
<div class="vector-menu-content">
|
|
<ul class="vector-menu-content-list">{{{html-items}}}</ul>
|
|
{{{html-after-portal}}}
|
|
</div>
|
|
</nav>
|