mediawiki-skins-MinervaNeue/components/ToggleList/ToggleListItem.mustache
Nicholas Ray f5d76eb157 Remove .toggle-list-item__icon selector
`.toggle-list-item__icon` sole purpose appears to have been to apply
`vertical-align: middle`. However, this is already being fullfilled by
.toggle-list-item__label. It is also causing the labels to not be
vertically centered.

This will also fix the ellipsis not being aligned (T287522#7264959) when
the text overflows.

Bug: T287522
Bug: T288306
Change-Id: I2d434d1d2b90eab16fc96fe8bb1f0738e5c6921b
2021-08-05 16:01:53 -06:00

16 lines
495 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">
<span class="toggle-list-item__label">{{text}}</span>
</a>
</li>
{{/components}}