Page MenuHomePhabricator

Phonos icon appears larger and clipped until it's clicked
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
The loudspeaker icon is larger than its container, making it clipped, until you click on it.

seyshelles2.png (138×198 px, 4 KB)

If the page contains only a Phonos button, as in https://en.wikipedia.beta.wmflabs.org/w/index.php?oldid=600919, the button gets focused for a brief moment shortly after opening the page, and the icon shrinks. With JavaScript off, the icon remains clipped.

What should have happened instead?:
The icon is not clipped from the beginning.

Other information (browser name/version, screenshots, etc.):

Running mw.loader.load('oojs-ui-core.styles') makes the icon appear as expected.

QA Results - Beta

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Looks like an issue with the rule:

.ext-phonos-PhonosButton.oo-ui-buttonElement-frameless.oo-ui-buttonWidget > .oo-ui-buttonElement-button { display: inline; }

This needs to be inline-block

Change 958538 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/Phonos@master] PhonosButton.less: ensure icon is correct size before OOUI is loaded

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

I can't reproduce the issue on my local, but the above patch should fix it.

Change 958538 merged by jenkins-bot:

[mediawiki/extensions/Phonos@master] PhonosButton.less: ensure icon is correct size before OOUI is loaded

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

GMikesell-WMF moved this task from QA 🐛 to Done 🏁 on the Community-Tech (CommTech-Kanban) board.
GMikesell-WMF subscribed.

@MusikAnimal No clipped icons as seen in the screenshots below. I will move this to Done. Thanks for all your work!

Status: ✅ PASS
Environment: Beta
OS: macOS Ventura
Browser: Chrome 116, Firefox 116, Safari 16.6
Device: MBA M2
Emulated Device:: N/A
Test Links:
https://en.wikipedia.org/wiki/Seychelles
https://en.wikipedia.beta.wmflabs.org/wiki/Seychelles
https://en.wikipedia.beta.wmflabs.org/w/index.php?oldid=600918
https://en.wikipedia.beta.wmflabs.org/w/index.php?oldid=600919,

✅AC1: https://phabricator.wikimedia.org/T346592

Clipped- Old PatchNew Patch- Beta
2023-09-18_14-35-35.png (417×859 px, 102 KB)
2023-09-18_14-42-50.png (655×856 px, 160 KB)

No clipped icons

2023-09-18_14-31-31.png (983×1 px, 187 KB)

Icon did not shrinked when opening the page and it's not clipped when JS is off

2023-09-18_14-48-26.png (1×1 px, 191 KB)