mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +00:00
516ef3a1cb
Putting the dropdown content in the details elemenet have been inconsistent. Transition are not working correctly and different browsers are not handling it well. Furthermore, the previous implementation does not allow an always visible state of dropdown content. Fixes: #882
21 lines
820 B
Plaintext
21 lines
820 B
Plaintext
{{!
|
|
object data-page-languages
|
|
object data-page-variants
|
|
bool is-uls-ready
|
|
}}
|
|
<div class="citizen-page-languages page-actions__item citizen-dropdown">
|
|
<details class="citizen-dropdown-details">
|
|
<summary
|
|
class="citizen-dropdown-summary {{#is-uls-ready}}mw-interlanguage-selector{{/is-uls-ready}}"
|
|
title="{{msg-citizen-languages-toggle}}"
|
|
aria-details="citizen-languages__card"
|
|
data-counter-text="{{html-language-count}}">
|
|
<span class="citizen-ui-icon mw-ui-icon-wikimedia-language"></span>
|
|
<span>{{msg-citizen-languages-toggle}}</span>
|
|
</summary>
|
|
</details>
|
|
<aside id="citizen-languages__card" class="citizen-menu__card">
|
|
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
|
{{#data-portlets.data-variants}}{{>Menu}}{{/data-portlets.data-variants}}
|
|
</aside>
|
|
</div> |