Page MenuHomePhabricator

Add icon class to icon capable portlet links without an ID
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

When an protlet link is added with mw.util.addPortletLink without an ID, it is not aligned with portlet links with an ID. This is because these links are not given the mw-ui-icon and mw-ui-icon-before classes, meaning the margin where the icon would go is never added.

image.png (152×219 px, 3 KB)

In the picture above, "User script" does not have an ID, but "Todo" does.

Event Timeline

Change 759811 had a related patch set uploaded (by BrandonXLF; author: BrandonXLF):

[mediawiki/skins/Vector@master] Add icon classes to portlet links without IDs

https://gerrit.wikimedia.org/r/759811

When testing we should check ContentTranslation's usage of mw.util.addPortletLink

Change 759811 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Add icon classes to portlet links without IDs

https://gerrit.wikimedia.org/r/759811