Page MenuHomePhabricator

Snapshot container inherits font size from parent
Closed, ResolvedPublic

Description

  • Leaflet/mapbox.js fixes the font size to 12px - which should be changed to 14px to align with article contents font size.
  • Snapshot container does not rely on leaflet, so inherits font size from parent. When it's put within a parent container that sets a smaller font size, the OOjs UI control for opening the map full screen is rendered with incorrect padding.

See screenshot:

Screen Shot 2016-11-02 at 4.02.53 PM.png (320×313 px, 12 KB)

Event Timeline

Change 319488 had a related patch set uploaded (by JGirault):
Sets font size to 14px for both static and interactive maps

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

After the patch, the map looks like:

Screen Shot 2016-11-02 at 4.05.54 PM.png (318×314 px, 12 KB)

As a result of this patch, the popup text will be a little bigger: increased to`14px`, the same size as the article contents.

Before: 12pxAfter: 14px
Screen Shot 2016-11-02 at 4.09.48 PM.png (409×388 px, 155 KB)
Screen Shot 2016-11-02 at 4.09.41 PM.png (412×383 px, 152 KB)

Change 319493 had a related patch set uploaded (by Yurik):
Sets font size to 14px for both static and interactive maps

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

Change 319488 merged by jenkins-bot:
Sets font size to 14px for both static and interactive maps

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

Change 319493 merged by jenkins-bot:
Sets font size to 14px for both static and interactive maps

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

Mentioned in SAL (#wikimedia-operations) [2016-11-03T00:23:57Z] <dereckson@tin> Synchronized php-1.29.0-wmf.1/extensions/Kartographer/styles/: Set font size to 14px for both static and interactive maps (T149860) (duration: 00m 47s)

Yurik subscribed.

Thanks!!!