mediawiki-skins-Citizen/templates/UserMenu.mustache
alistair3149 a2d3159def
feat(core): replace checkbox hack with details and summary
Note that ToC is still using the old checkbox hack, it will be replaced in a later time.
Related: T333394
2024-05-30 02:20:13 -04:00

16 lines
710 B
Plaintext

{{!
string msg-citizen-usermenu-toggle The label used by the user menu button.
}}
<details class="citizen-userMenu citizen-header__item citizen-menu__dropdown">
<summary
class="citizen-menu__dropdownButton"
title="{{msg-citizen-usermenu-toggle}}">
<span class="citizen-ui-icon mw-ui-icon-wikimedia-userAvatar"></span>
<span>{{msg-citizen-usermenu-toggle}}</span>
</summary>
<div id="citizen-userMenu__card" class="citizen-menu__card">
{{#data-user-info}}{{>UserInfo}}{{/data-user-info}}
{{#data-portlets.data-user-interface-preferences}}{{>Menu}}{{/data-portlets.data-user-interface-preferences}}
{{#data-portlets.data-user-menu}}{{>Menu}}{{/data-portlets.data-user-menu}}
</div>
</details>