Page MenuHomePhabricator

Icon changes for QuickSurveys
Closed, ResolvedPublic2 Estimated Story PointsDesign

Assigned To
Authored By
Madalina
Nov 3 2021, 11:51 AM
Referenced Files
F34729967: image.png
Nov 4 2021, 10:10 AM
F34727409: image.png
Nov 3 2021, 12:41 PM
F34727418: 326.jpg
Nov 3 2021, 12:41 PM
F34687386: 3.png
Nov 3 2021, 11:51 AM
F34687344: 000.jpg
Nov 3 2021, 11:51 AM
F34689687: 304.jpg
Nov 3 2021, 11:51 AM
F34687346: 001.jpg
Nov 3 2021, 11:51 AM
F34687375: 2.png
Nov 3 2021, 11:51 AM

Description

In order to align QS survey design to the Wikimedia design style guide we need to implement the following icon changes:

Designs

CurrentDesiredSpecs
image.png (375×600 px, 30 KB)
image.png (158×220 px, 20 KB)
326.jpg (458×600 px, 77 KB)

Notes

  • Use the LinkExternal icon from the WVUI.
  • Set icon dimensions to 10x10px.
  • Icon color Accent 50 #3366cc.
  • Icon margin left set to 3px.

Technical info

This style is defined in MediaWiki core around here https://gerrit.wikimedia.org/g/mediawiki/core/+/efd780c31e5bee0bd083a8cc77cf9d71bfcdffcc/resources/src/mediawiki.skinning/content.externallinks.less

Event Timeline

Madalina created this task.
ARamirez_WMF set the point value for this task to 2.Nov 3 2021, 3:16 PM

Now that I think about this I have a doubt, what are the criteria that classifies a link as external? As the privacy policy will be probably hosted on a Wikimedia-owned page (eg. https://foundation.wikimedia.org/wiki/Legal:2019_Editor_Gender_Survey_Privacy_Statement) will the mw-parser identify the privacy statement link as external? If that is not the case we could probably close this issue, or move it to the QuickSurvey board. What do you think @Jhernandez?

Please note, that there has been already an approach proposed to unify Vector's external link icon with the WikimediaUI collection of the style guide. This should also cover above task from my point of view.

In T294910#7479046, @aminalhazwani wrote:

Now that I think about this I have a doubt, what are the criteria that classifies a link as external? As the privacy policy will be probably hosted on a Wikimedia-owned page (eg. https://foundation.wikimedia.org/wiki/Legal:2019_Editor_Gender_Survey_Privacy_Statement) will the mw-parser identify the privacy statement link as external? If that is not the case we could probably close this issue, or move it to the QuickSurvey board. What do you think @Jhernandez?

The selector applies to any links that are written with the external link syntax in wikitext:

image.png (410×792 px, 28 KB)

So like you mentioned, we could link via wiki link instead of external link and that icon wouldn't show up:

[[foundation:Legal:2019_Editor_Gender_Survey_Privacy_Statement|privacy policy]]

Please note, that there has been already an approach proposed to unify Vector's external link icon with the WikimediaUI collection of the style guide. This should also cover above task from my point of view.

@Volker_E It doesn't seem like that would fix other skins right? Just in case you didn't notice, Minerva shows the same icons as vector so if this is fixed in vector instead of in mediawiki core then I think other skins will be showing the outdated icons too.

Great, thanks for sharing @Jhernandez. Since we are going to display at least two links (and since these two links are hosted on wiki pages) we could opt for the wiki link syntax. In this way we also avoid any potential visual "noise" that might have happened with multiple icons displayed within the text.

@Jhernandez Just for completion, it seems the icon in Minerva is broken due to a specificity issue recently(?) introduced. My updated proposal in T261391 includes removing the external link styling completely from MW core and leave this up to skin territory.

My updated proposal in T261391 includes removing the external link styling completely from MW core and leave this up to skin territory.

Cool, thanks for sharing @Volker_E!

@Jhernandez I think we can close this task.