Page MenuHomePhabricator

Mobile font size and line-height changes only applied to <p> elements
Closed, ResolvedPublicBUG REPORT

Description

Apologies if this has already been reported, but I think this is separate from the issues in T357724 and T357770. The line-height changes and mobile font size setting only seem to apply to <p> elements. This leads to inconsistent appearance, most noticeable if Font size is set to anything other than "Small". Some examples:

en.wikipedia Main Page: "Today's featured article" blurb is larger than "In the news" and other lists

en.m.wikipedia.org_wiki_Main_Page(iPhone 12 Pro).png (2×1 px, 712 KB)

Lists in articles (example from https://en.m.wikipedia.org/wiki/Super_Bowl_LVIII#International)

en.m.wikipedia.org_wiki_Super_Bowl_LVIII(iPhone 12 Pro).png (2×1 px, 506 KB)

Talk pages: Top level messages are larger than replies (example from https://en.m.wikipedia.org/wiki/Talk:Super_Bowl_LVIII)

en.m.wikipedia.org_wiki_Talk_Super_Bowl_LVIII(iPhone 12 Pro).png (2×1 px, 449 KB)

Note this isn't an issue for the desktop font size setting beta feature, is it possible to use that approach on mobile instead?

Event Timeline

JScherer-WMF subscribed.

Thanks for reporting this @Pcoombe !

Font size should not change from the default font size for the elements. Line height params should be applied to lists as well as <p> elements.

@JScherer-WMF I think this should be revidsed given T358498 ?

I don't think so. The bug still exists. Regardless of the line height, it should apply equally to <p> elements and <li>s, etc.

The proposed fix in T358498 will apply the line-height to all content. It would be trivial for me to apply the 1.5 line height to all content in font size medium and large as part of this change if you like

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

[mediawiki/extensions/MobileFrontend@master] Revert line height in "Standard" mode, apply to all content in other

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

Change 1006580 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Revert line height in "Standard" mode, apply to all content in other

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

This should be resolved on the beta cluster. Do you want to take a look?

JScherer-WMF added a subscriber: Edtadros.

Looks good to me. Putting up for grabs and moving to QA in case @Edtadros wants to look at it as well before sign off.