Page MenuHomePhabricator

Add QR icon in Codex and OOUI
Closed, ResolvedPublic2 Estimated Story Points

Description

Background & Goal

In T242467 we are implementing the QR code generator and we need to add this icon in our system in order to use it in this project.

Captura de pantalla 2023-06-19 a las 13.31.12.png (916×1 px, 155 KB)

User stories

  • As a user I need to use the QR code icon.

Considerations (Optional)

Open questions (Optional)

  • RTL version is needed? - It's not necessary to mirror a QR code in RTL

Proposal

Captura de pantalla 2023-06-19 a las 13.32.14.png (698×664 px, 20 KB)

Design spec

SVG icon

Acceptance criteria for Done

Design

  • The design of the new icon is ready, and it follows our icon system guidelines
  • The new icon has been reviewed with help from the DST
  • An RTL icon has been created (if needed) - Not needed in this case
  • The icon is recognizable on low DPI resolutions
  • The icon has been exported as an optimized SVG and added to this task’s description
  • The new icon has been included in our Icon System Figma library, and the library has been published

Code

  • Add icon in Codex
  • Add icon in OOUI

Documentation

Event Timeline

@MusikAnimal I've exported the SVG icon and included it in the task, so it's ready to be added in Codex and OOUI.

One question, is the QR code something that will be mirrored when RTL? If yes, we will need the RTL version of the icon.

One question, is the QR code something that will be mirrored when RTL? If yes, we will need the RTL version of the icon.

As far as I know, there's no technical requirement for QR codes to be mirrored for RTL users; a scanner will scan it even if it's upside down etc. But from a design point of view, you may or may not it flipped, where the usual three squares are in the bottom/top left and top right, then the rest the encoding bits. So I think it's a design call. Personally if I see it flipped, I still see a QR code, so I don't personally think an RTL version is necessary.

Change 931671 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[design/codex@main] Icons: add QR code icon

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

Change 931686 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[oojs/ui@master] icons: Add 'qrCode' icon to 'content' pack

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

MusikAnimal set the point value for this task to 2.Jun 20 2023, 8:19 PM

FYI, changes I made to the icon due to the codex test failures:

  • Color is now black, not #202122, thus removed the fill attribute
  • Removed clip-rule="evenodd", though kept fill-rule:"evenodd" as that seemed necessary (?)
  • Add a <title>QR code</title>

To me, everything looks the same as the SVG in the task description, except it being black instead of dark gray.

Thank you @MusikAnimal! The icon being black instead of dark gray is intended. In practice, it's going to be displayed as dark gray in most contexts, but in order to be able to set the color depending on the context (for example, when used in a button the icon might need to be blue, or red, or white against a blue/red/gray background) we need to not have hard-coded colors in the SVG file.

Change 931671 merged by jenkins-bot:

[design/codex@main] Icons: add QR code icon

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

Change 931686 merged by jenkins-bot:

[oojs/ui@master] icons: Add 'qrCode' icon to 'content' pack

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

Change 935793 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] Update OOUI to v0.47.2

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

Change 935794 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] Update Codex from v0.13.0 to v0.14.0

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

Test wiki created on Patch demo by ATomasevich (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/64dc3126c0/w

Change 935794 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.13.0 to v0.14.0

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

Change 935833 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/skins/MinervaNeue@master] extension.json: add qrCode icon to overflow.icons

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

Change 935793 merged by jenkins-bot:

[mediawiki/core@master] Update OOUI to v0.47.3

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

Change 935833 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] extension.json: add qrCode icon to overflow.icons

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

Test wiki on Patch demo by ATomasevich (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/64dc3126c0/w/