mediawiki-skins-Citizen/templates/PageTools.mustache
alistair3149 c6e9bc44a9 feat(core): use checkboxHack for page actions more menu
* use checkboxHack for the menu
* streamline language and more action menu styles and classes
2022-05-16 18:14:35 -04:00

35 lines
1.2 KiB
Plaintext

{{!
object data-page-views
object data-page-namespaces
object data-page-actions
bool has-languages
object data-page-toolbox
}}
{{#data-pagetools}}
<div class="page-actions">
{{#data-page-views}}{{>Menu}}{{/data-page-views}}
{{#data-namespaces}}{{>Menu}}{{/data-namespaces}}
{{#has-languages}}{{>PageTools__languages}}{{/has-languages}}
<div class="page-actions-more page-actions__item mw-checkbox-hack-container">
<input
type="checkbox"
id="page-actions-more__checkbox"
class="mw-checkbox-hack-checkbox"
role="button"
aria-labelledby="page-actions-more__buttonCheckbox"
aria-haspopup="true">
<aside id="page-actions-more__card" class="page-actions__card mw-checkbox-hack-target">
{{#data-page-actions}}{{>Menu}}{{/data-page-actions}}
{{#data-page-toolbox}}{{>Menu}}{{/data-page-toolbox}}
</aside>
<label
id="page-actions-more__buttonCheckbox"
class="mw-checkbox-hack-button page-actions__button page-actions__button--icon"
for="page-actions-more__checkbox"
title="{{msg-citizen-actions-more-toggle}}"
aria-hidden="true">
<span>{{msg-citizen-actions-more-toggle}}</span>
</label>
</div>
</div>
{{/data-pagetools}}