Disable unused icon variants

By default this module was inheriting variants and since it doesnt declare a
property selectorWithVariant it was using the default selectorWithVariant
rule which impacts OOUI icons.

Explicitly disable the variants for this module as they are unused. This
reduces the size of the modules.

Follow up to: I87b060cf98194d81679da2610944f58e8d941389

Bug: T374145
Bug: T376226
Change-Id: Icc008449ee498a946066c4ce5d46adcac194bd3b
This commit is contained in:
Jon Robson 2024-10-03 13:06:12 -04:00 committed by Jdlrobson
parent 6b12257456
commit 1b38bfbfc6
2 changed files with 6 additions and 2 deletions

View file

@ -13,11 +13,11 @@
},
{
"resourceModule": "skins.minerva.icons.wikimedia",
"maxSize": "0.95KB"
"maxSize": "0.5KB"
},
{
"resourceModule": "skins.minerva.mainMenu.icons",
"maxSize": "0.8KB"
"maxSize": "0.4KB"
},
{
"resourceModule": "skins.minerva.mainMenu.styles",

View file

@ -372,6 +372,7 @@
"useDataURI": false,
"defaultColor": "#54595d",
"class": "MediaWiki\\ResourceLoader\\OOUIIconPackModule",
"variants": [],
"useMaskImage": true,
"icons": [
"block",
@ -400,6 +401,7 @@
"useDataURI": false,
"defaultColor": "#54595d",
"class": "MediaWiki\\ResourceLoader\\OOUIIconPackModule",
"variants": [],
"useMaskImage": true,
"icons": [
"edit",
@ -428,6 +430,7 @@
},
"skins.minerva.personalMenu.icons": {
"class": "MediaWiki\\ResourceLoader\\OOUIIconPackModule",
"variants": [],
"useMaskImage": true,
"selectorWithoutVariant": ".minerva-icon--{name}",
"defaultColor": "#54595d",
@ -451,6 +454,7 @@
},
"skins.minerva.mainMenu.icons": {
"class": "MediaWiki\\ResourceLoader\\OOUIIconPackModule",
"variants": [],
"useMaskImage": true,
"selectorWithoutVariant": ".minerva-icon--{name}",
"defaultColor": "#54595d",