mediawiki-skins-Citizen/templates/Menu.mustache
alistair3149 1df223abfa
feat(core): update menu to be more inlined with MW core
* Use label instead of h3 for menu headings
* Rename portals to portlets according to core
* Replace label-class with heading-class
* Use has-label to hide labels instead of adding screen reader class
2022-05-18 17:14:24 -04:00

16 行
451 B
Plaintext

{{!
}}
<nav id="{{id}}"{{#class}} class="{{.}}"{{/class}} {{{html-tooltip}}} {{{html-userlangattributes}}}>
{{#has-label}}
<label
id="{{id}}-label"
{{#aria-label}} aria-label="{{.}}"{{/aria-label}}
class="citizen-menu__heading{{#heading-class}} {{.}}{{/heading-class}}">
<span class="citizen-menu__heading-label">{{label}}</span>
</label>
{{/has-label}}
{{{html-before-portal}}}
<ul>{{{html-items}}}</ul>
{{{html-after-portal}}}
</nav>