Merge "Fix spacing between icon + text in toggle menu and JS"

This commit is contained in:
jenkins-bot 2022-02-10 16:54:27 +00:00 committed by Gerrit Code Review
commit 46303db1cd
2 changed files with 1 additions and 2 deletions

View file

@ -9,7 +9,7 @@
<li class="toggle-list-item">
<a class="toggle-list-item__anchor {{class}}" href="{{href}}"
data-event-name="{{data-event-name}}" data-mw="interface">
{{#icon}}<span class="mw-ui-icon mw-ui-icon-{{.}}"></span>&nbsp;{{/icon}}
{{#icon}}<span class="mw-ui-icon mw-ui-icon-{{.}}"></span>{{/icon}}
<span class="toggle-list-item__label">{{text}}</span>
</a>
</li>

View file

@ -46,7 +46,6 @@ function insertIcon( $link, id ) {
classes += ' mw-ui-icon-portletlink-' + id;
}
icon.setAttribute( 'class', classes );
$link.prepend( '&nbsp;' );
$link.prepend( icon );
}