Page MenuHomePhabricator

All menu items should have a default icon if not specified
Open, LowPublic2 Estimated Story PointsBUG REPORT

Assigned To
None
Authored By
BrandonXLF
Apr 5 2023, 3:36 AM
Referenced Files
F36940385: Screenshot 2023-04-05 at 10.18.44 AM.png
Apr 5 2023, 5:19 PM
F34942588: image.png
Apr 5 2023, 3:40 AM
Unknown Object (File)
Apr 5 2023, 3:36 AM

Description

When a protlet link is added with mw.util.addPortletLink without an ID, it is not aligned with portlet links with an ID. This is because the createIconElement is never called for icons without an ID.

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

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

This is similar to T301012, but is caused by different code.

Event Timeline

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

[mediawiki/skins/Vector@master] Add an icon to all links for consistent spacing

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

@KieranMcCann for gadgets would it make sense to have a default icon, perhaps the labs flask icon to indicate they are gadgets? What do you think?

Screenshot 2023-04-05 at 10.18.44 AM.png (39×120 px, 2 KB)

The 'labFlask' icon is so far used for chemical nodes and contexts in the Math extension and for betalab features.

LGoto triaged this task as Medium priority.

Removing inactive task assignee. (For future reference, please do so as part of offboarding!)

Jdlrobson renamed this task from Try to add icon to all portlet links, including those without an ID to All menu items should have a default icon if not specified.Jun 13 2023, 9:08 PM
Jdlrobson lowered the priority of this task from Medium to Low.Jun 15 2023, 5:48 PM
Jdlrobson set the point value for this task to 2.

Change #905776 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] Add an icon to all links for consistent spacing

Reason:

Hello this is an automated message.
I am abandoning this patch as it over a year old, and is not currently in a mergeable state. This has nothing to do with the quality of the patch.

If you still care about this patch, please feel free to restore it and rebase it, and we can happily continue the conversation to help you get it merged.

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