mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-02 03:07:13 +00:00
6c817e932f
- Register new feature for main menu pinned - Update UserPreferenceRequirement to optionally handle default config values - Add nav landmarks for the main menu Bug: T317900 Change-Id: I8fc6e0a79a1155d68afb9e33e5101a2a160dc4e5
28 lines
1 KiB
Plaintext
28 lines
1 KiB
Plaintext
{{!
|
|
@typedef object main-menu-action
|
|
@prop string href
|
|
@prop string text
|
|
|
|
string html-logo-attributes for site logo. Must be used inside tag e.g. `class="logo" lang="en-gb"`
|
|
MenuDefinition data-portlets-first
|
|
MenuDefinition[] array-portlets-rest
|
|
main-menu-action data-main-menu-action For displaying an emphasized action in the main menu.
|
|
}}
|
|
<div class="vector-main-menu-container {{^data-toc}}vector-sidebar-container-no-toc{{/data-toc}}">
|
|
<div id="mw-navigation">
|
|
<nav id="mw-panel" class="vector-main-menu-landmark" aria-label="{{msg-vector-site-nav-label}}" role="navigation">
|
|
{{^is-page-tools-enabled}}
|
|
{{#data-main-menu}}{{>MainMenu}}{{/data-main-menu}}
|
|
{{/is-page-tools-enabled}}
|
|
{{#is-page-tools-enabled}}
|
|
{{#data-main-menu}}
|
|
{{>PinnableContainer/Pinned/Open}}
|
|
{{! Use `.vector-main-menu-pinned-container .vector-main-menu` to target styles at this element}}
|
|
{{#is-pinned}}{{>MainMenu}}{{/is-pinned}}
|
|
{{>PinnableContainer/Close}}
|
|
{{/data-main-menu}}
|
|
{{/is-page-tools-enabled}}
|
|
</nav>
|
|
</div>
|
|
</div>
|