Related: T346184
Minerva has various modules for providing icon packs. Given the limitations with the selector and variants, it is sometimes confusing which icon pack to put it in.
There are few benefits of using icon packs for modules loaded via JS (for render blocking styles they can be useful given they support use of URLs rather than data URIs) so it's suggested we remove the modules in favor of the Codex icon mixin.
TODO
- For any icon rendered via JavaScript, use Codex mixins. This applies to the following modules:
- skins.minerva.icons.images.scripts.misc
- skins.minerva.icons.page.issues.uncolored
- skins.minerva.icons.page.issues.default.color
- skins.minerva.icons.page.issues.medium.color
- Any icons with the mw-ui-icon-minerva prefix have the minerva-icon- prefix (if needed)
- The following should remain icon packs, since they use "useDataURI: falsE" (or are loaded on page load):
- skins.minerva.content.styles.images
- skins.minerva.overflow.icons
- skins.minerva.icons.wikimedia
- skins.minerva.mainMenu.icons
- skins.minerva.personalMenu.icons
- The following modules should be updated to use useDataURI to reduce bundle size:
- skins.minerva.mainMenu.advanced.icons
- skins.minerva.personalMenu.icons [done in https://gerrit.wikimedia.org/r/c/mediawiki/skins/MinervaNeue/+/979964]
QA
Manually review any Pixel "regressions" and confirm they are improvements/acceptable.