Page MenuHomePhabricator

Vector makes all Codex icon-only buttons bigger on mobile/tablet screens, breaking layouts
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The icon-only buttons at the end of the comboboxes are too big:

image.png (720×278 px, 70 KB)

The icon-only buttons in the button demo also get bigger:
image.png (196×243 px, 7 KB)

What should have happened instead?:
The Comboboxes should have their normal appearance, with the button height matching the text input height. This does happen at viewport widths of 1000px and more:

image.png (721×296 px, 49 KB)

Software version (skip for WMF-hosted wikis like Wikipedia):
Current master branch

Other information (browser name/version, screenshots, etc.):
This is caused by this change, which introduced a blanket rule in Vector for all icon-only buttons, even those not owned by the skin itself. It initially didn't apply to anything because of higher-specificity rules in Codex, but those rules were removed recently, allowing the Vector styles to apply.

QA Results - Beta

ACStatusDetails
1T342190#9039692

Event Timeline

The sizing is intentional and more for consistency with Minerva where touch sizes are required to be bigger. A workaround for T338163

Perhaps on short term we can limit these rules to nav and header elements.

Should be fine to scope the "responsive" icon button styles to .vector-page-titlebar and .vector-header-container

Change 940974 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Limit button only icon resizing to Vector header button icons

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

I ran ./pixel.js reference && ./pixel.js test -c 940974 and Pixel flagged no UI regressions so I think the above solution should work fine. Passing to @bwang for review.

Change 940974 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Limit button only icon resizing to Vector header button icons

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

@Catrope FYI the change above should have made the train. Thanks for reporting!

Edtadros subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Ventura
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

Steps to replicate the issue (include links if applicable):

Go to https://en.wikipedia.beta.wmflabs.org/wiki/Special:VueTest/codex
Reduce the width of the viewport to less than 1000px
Look at the Combobox section
✅ AC1: The Comboboxes should have their normal appearance, with the button height matching the text input height. This does happen at viewport widths of 1000px and more:
It would be helpful to have the size specified for the elements in question. But visually they look as expected

Screenshot 2023-07-24 at 4.49.52 PM.png (1×884 px, 124 KB)

Screenshot 2023-07-24 at 4.50.50 PM.png (1×887 px, 148 KB)

Jdlrobson removed ovasileva as the assignee of this task.
Jdlrobson added a subscriber: ovasileva.

This can't be easily tested on production (https://en.wikipedia.org/wiki/Special:VueTest/codex doesn't exist) so resolving this ticket.