Page MenuHomePhabricator

Fix clipping of icon for IPInfo popups when language is set to ar [S]
Closed, ResolvedPublic

Description

follows up on T268981#7609125

I notice on https://ar.wikipedia.beta.wmflabs.org, I think this change chops off the bottom of the icon (ar and arz use a different icon.)

With overflow: hidden:

ar_icon_hidden.png (42×105 px, 1 KB)

Without:

ar_icon_not_hidden.png (44×108 px, 1 KB)

Another way to see the clipped icon is by adding the param uselang=ar to the querystring (e.g. Special:Log?uselang=ar), or setting the user's language to Arabic via Special:Preferences.

AC:

Event Timeline

The OOUI icon set has overrides for both directionality and language-specific "fixes". The most used of these is the B/I bold/italic icons which get localised to the local language (e.g. F/K in German), but it is also used in some other cases: In Hebrew and Yiddish, the question mark is /not/ flipped even though they are RTL, and in Arabic this icon is overridden because the 'i' is considered not recognisable to Arabic speakers: T178568.

Unfortunately these variants are not exposed in the OOUI demos: T299061

Tchanders renamed this task from Use same icon for IPInfo popups an ar and arz wikis to Fix clipping of icon for IPInfo popups on ar and arz wikis.Jan 13 2022, 4:34 PM
STran renamed this task from Fix clipping of icon for IPInfo popups on ar and arz wikis to Fix clipping of icon for IPInfo popups on ar and arz wikis [S].Jan 14 2022, 11:04 PM
STran moved this task from Pre-estimation/Triage to The Letter Song on the Anti-Harassment board.
Tchanders renamed this task from Fix clipping of icon for IPInfo popups on ar and arz wikis [S] to Fix clipping of icon for IPInfo popups when language is set to ar [S].Jan 17 2022, 3:51 PM
Tchanders updated the task description. (Show Details)

Change 755318 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/IPInfo@master] Fix clipping of icon for IPInfo popups when language is set to ar

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

Change 755318 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Fix clipping of icon for IPInfo popups when language is set to ar

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

The clipping bug appears to be fixed in Arabic on Firefox, Chrome and Safari on Special:Log, Special:RecentChanges and revision history. I tested zoom levels 100%-200%.

Nor was I able to reproduce the bug in T268981.

For regression purposes, I tested all 5 skins on beta in English, Hebrew and Arabic on Firefox. I did not notice any display issues, apart from T299878.

Test Environment: https://en.wikipedia.beta.wmflabs.org (did not get the version)
Test Browsers: Firefox 91, Chromium 87, Safari 14.