Page MenuHomePhabricator

Something strange with WikimediaUI-components_overview.svg
Closed, ResolvedPublic

Assigned To
Authored By
Iniquity
Nov 25 2018, 8:06 PM
Referenced Files
F27353886: Screenshot_9.png
Dec 2 2018, 1:43 PM
F27353884: Screenshot_7.png
Dec 2 2018, 1:43 PM
F27353885: Screenshot_10.png
Dec 2 2018, 1:43 PM
F27353883: Screenshot_8.png
Dec 2 2018, 1:43 PM
F27353882: Screenshot_6.png
Dec 2 2018, 1:43 PM
F27312206: Screenshot_5.png
Nov 25 2018, 8:06 PM
F27312204: Screenshot_4.png
Nov 25 2018, 8:06 PM

Event Timeline

Possibly happening because the fonts have been defined as HelveticaNeue-Bold, Helvetica Neue which are pre-installed on MacOS. It shows up in the default font on other OS's. Should add sans-serif here.

Volker_E claimed this task.
Volker_E subscribed.

Thanks @Iniquity. That should be fixed in most recent push based on https://github.com/wikimedia/WikimediaUI-Style-Guide/pull/159 and be visible online within the next hour.

Iniquity reopened this task as Open.EditedDec 2 2018, 1:43 PM

@Volker_E Thanks! But I regret to inform you that...

Screenshot_9.png (672×1 px, 33 KB)

Screenshot_10.png (122×309 px, 3 KB)

Screenshot_7.png (131×682 px, 8 KB)

Screenshot_8.png (89×531 px, 2 KB)

Screenshot_6.png (103×519 px, 2 KB)

I will re-open this task just in case :) Or I need to create another one?

@Iniquity Please take note, that due to line-box rendering inconsistencies in SVG we can't fully control the vertical alignment of text in buttons without a massive manual extra step (moving all text items in SVG up by 1-2 pixels. This is a known issue and will be monitored. For now we have to continue with this small misalignment in SVG. Sketch and PNG are showing the correct position.
See https://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align for further information.

Volker_E triaged this task as Medium priority.
Volker_E moved this task from In Dev/Progress to Done on the Wikimedia Design Style Guide board.
Volker_E removed a project: Patch-For-Review.

A more future-proof solution has been added in https://github.com/wikimedia/WikimediaUI-Style-Guide/pull/281 with a Grunt replace task, ensuring sans-serif fallback across components.