Page MenuHomePhabricator

Buttons in ButtonGroupWidget don't have same height/are misaligned
Closed, ResolvedPublic

Description

pasted_file (52×163 px, 1 KB)

delete-link.png (220×510 px, 47 KB)

Screen Shot 2016-07-02 at 00.30.42.png (388×924 px, 44 KB)

Event Timeline

Esanders raised the priority of this task from to Needs Triage.
Esanders updated the task description. (Show Details)
Esanders added a project: OOUI.
Esanders added subscribers: Esanders, Prtksxna.
Jdforrester-WMF set Security to None.
Jdforrester-WMF raised the priority of this task from Medium to High.Nov 17 2015, 1:24 AM
Jdforrester-WMF subscribed.

This is pretty high-profile now:

Screen Shot 2015-11-16 at 14.59.04.png (191×429 px, 23 KB)

Can we fix it reasonably?

Pginer-WMF added subscribers: matmarex, Pginer-WMF.

I added some of the examples commented at T119615 in the description.
Thanks @matmarex for pointing to this ticket.

The MediaViewer buttons do not use OOUI; they are constructed manually (processFilePageThumb() in resources/mmv/mmv.bootstrap.js). And they used to be properly aligned, so this seems like a regression in the .mw-ui-button-group CSS class.

Splitting off the MultimediaViewer issue to T127052.

Change 297260 had a related patch set uploaded (by VolkerE):
MediaWiki theme: Ensure buttons in ButtonGroupWidget are same height

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

Volker_E moved this task from Backlog to Reviewing on the OOUI board.
Volker_E renamed this task from Buttons in ButtonGroupWidget don't have same height to Buttons in ButtonGroupWidget don't have same height/are misaligned.Aug 4 2016, 5:27 PM
Volker_E updated the task description. (Show Details)
Volker_E added subscribers: Krinkle, Zppix.

Doesn't seem fully resolved, on certain platforms/browsers we're still running into this.

@Elitre would you please provide as much information as possible from your comment on https://phabricator.wikimedia.org/T159580#3076419?
Given the screenshot

T113495 Button misalignment Screenshot 2017-03-06.png (372×718 px, 110 KB)

Which browser (I guess Chrome), browser version, operating system, which font!? I can help you in finding especially the latter out.

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 297260 abandoned by VolkerE:
MediaWiki theme: Ensure framed buttons are same height

Reason:
Abandoned in favor of Ic2935cb5d9 and I9a2d3975927

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

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

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

Volker_E removed a project: Patch-For-Review.

We've got this somewhat under control. There might be still rare cases of this happening especially under nested inheritance. But for now it's good to be resolved and we might look back at it when a change towards px sizing becomes reality.