mediawiki-skins-MinervaNeue/includes/Skins/ToggleList/ToggleListItem.mustache
Jan Drewniak 3020e58eaa [Icons] Use IconLegacy template in menuGroup and ToggleListItem
Updates the menuGroup.mustache and ToggleListItem.mustache
templates to include the IconLegacy.mustache template partial.

These templates are used by the main menu and dropdown menus
(logged-in user menu and advanced mobile contributions 'more' menu).

This should result in no visual or HTML changes.

Bug: T342908
Change-Id: Idfad10b48c9ee9e833509e3c4063c6a4b014a31b
2023-08-03 13:11:16 +02:00

17 lines
544 B
Plaintext

{{!
array components
string|null components.class Optional anchor CSS class.
string|null components.href Optional URI.
string|null components.text Optional text.
string|null components.data-event-name Optional tracking code.
}}
{{#components}}
<li class="toggle-list-item">
<a class="toggle-list-item__anchor {{class}}" href="{{href}}"
data-event-name="{{data-event-name}}" data-mw="interface">
{{#data-icon}} {{>IconLegacy}} {{/data-icon}}
<span class="toggle-list-item__label">{{text}}</span>
</a>
</li>
{{/components}}