Restores language button icon font size

The font size of icons should never be changed. Since it's also a span

Bug: T296212
Change-Id: I8bf4e9a7d43a9e5206d3ff6d89e2c3f74fa0d25a
This commit is contained in:
jdlrobson 2021-11-30 11:38:26 -08:00 committed by Jdlrobson
parent 0b232afc06
commit f0ed70d709
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@
class="{{#checkbox-class}}{{.}} {{/checkbox-class}}vector-menu-checkbox" aria-labelledby="{{id}}-label" />
{{/is-dropdown}}
<h3 id="{{id}}-label" aria-label="{{aria-label}}"{{#heading-class}} class="{{.}}"{{/heading-class}}{{^is-legacy}} aria-hidden="true"{{/is-legacy}}>
{{{html-vector-heading-icon}}}<span>{{label}}</span>
{{{html-vector-heading-icon}}}<span class="vector-menu-heading-label">{{label}}</span>
{{#is-dropdown}}
<span class="vector-menu-checkbox-expanded">{{msg-vector-menu-checkbox-expanded}}</span>
<span class="vector-menu-checkbox-collapsed">{{msg-vector-menu-checkbox-collapsed}}</span>

View File

@ -24,7 +24,9 @@
// Remove opacity on language button (it applies to more menu because of label color).
opacity: 1;
span {
// FIXME: `span:not` rule can be removed when cache has cleared.
span:not( .mw-ui-icon ),
.vector-menu-heading-label {
// Special treatment for language button, based on Vector font-size
font-size: @font-size-base;
}