mediawiki-skins-Citizen/templates/Preferences.mustache
alistair3149 76a39eafdf
perf(preferences): ️ rewrite to use dropdown component
Dropdown + Menu component are already doing the same thing.
We can just extend those and drop all the custom handling
2024-11-12 20:13:47 -05:00

20 lines
694 B
Plaintext

{{!
string msg-citizen-preferences-toggle The label used by the preferences button.
}}
<div class="citizen-preferences citizen-header__item citizen-dropdown">
<details id="citizen-preferences-details" class="citizen-dropdown-details">
<summary
class="citizen-dropdown-summary"
title="{{msg-citizen-preferences-toggle}}"
aria-details="citizen-preferences__card">
<span class="citizen-ui-icon mw-ui-icon-wikimedia-settings"></span>
<span>{{msg-citizen-preferences-toggle}}</span>
</summary>
</details>
<div id="citizen-preferences__card" class="citizen-menu__card">
<div
id="citizen-preferences-content"
class="citizen-preferences-content"
></div>
</div>
</div>