Page MenuHomePhabricator

Edit link panel has uneven height of OOUI buttons in desktop Safari
Closed, ResolvedPublic8 Estimated Story Points

Description

Screen Shot 2015-12-28 at 13.29.07.png (122×423 px, 16 KB)

Seeing this with Safari on mediawik.org
Demo was added in https://gerrit.wikimedia.org/r/#/c/342321/

Event Timeline

TheDJ raised the priority of this task from to Needs Triage.
TheDJ updated the task description. (Show Details)
TheDJ subscribed.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript
Jdforrester-WMF renamed this task from Edit link panel has uneven height of oojs buttons to Edit link panel has uneven height of OOUI buttons in desktop Safari.Jan 19 2016, 8:13 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF set Security to None.
Jdforrester-WMF edited a custom field.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.

It's still reproducible on latest Safari 10.0.3/Mac. The reason behind this is line-height of iconElement is 15px and labelElement is 16px unlike Chrome. Firefox plays a different game and needs a line-height greater one. We're obviously not doing ourselves a favor by relying on other values than line-height: 1 to position the label within buttons.
The cross-browser solution that I've found still relies on line-height, but tries to tame it's influence and normalize its calculation.

Change 341117 had a related patch set uploaded (by VolkerE):
[oojs/ui] MediaWiki theme: Align “framed” ButtonWidgets cross-browser

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

Change 341117 merged by jenkins-bot:
[oojs/ui] MediaWiki theme: Align “framed” ButtonWidgets cross-browser

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

Jdforrester-WMF changed the point value for this task from 8 to 0.
Jdforrester-WMF changed the point value for this task from 0 to 8.