Closed Bug 1785134 Opened 3 years ago Closed 3 years ago

In-content tabs have too large font size

Categories

(Thunderbird :: Upstream Synchronization, defect)

defect

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
105 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: aleca, Assigned: Paenglab)

References

(Regression)

Details

(Keywords: regression, Whiteboard: regression)

Attachments

(2 files)

The font size in our in-content sections is now bloated.
Maybe regressed by bug 1773342

This seems to happen on GTK with increased font sizing.
I'm on elementary OS 6 and I'm using their built-in accessibility feature to upscale the font to 1.25

This is mostly due to our own implementation of the uiFontSize.jsm, in which we implemented a default body font size of 1rem to normalize all sizes and respect the OS scaling.

My setup

If I manually set font-size: 12px on the HTML element of a content tab, the UI normalizes correctly.
We don't set the font-size style on those elements if it matches the default size of the OS, because up to this point the UI always scaled correctly.

Something has changed that it seems to interfere with those changes and making only the content font size larger.
These are uneducated guesses, so I might be completely wrong.

Attached image chrome-content.png

Gentle ping to emilio to see if he has any idea.

Flags: needinfo?(emilio)

Remove bug 1773342 as the cause for the regression since 2 days ago i reviewed a patch changing some icons in the account setup tab and the font sizing looked correct.
So, this might be a very recent regression.

No longer regressed by: 1773342

Okay, let me know if I have something to do with the regression and happy to poke :)

Flags: needinfo?(emilio)

On Windows the font is smaller than before.

Yeah, that created some unexpected and inconsistent outcomes depending on the platform and OS font size.

Bug 1784891 might be helpful for us since it introduces a class that will exclude applying that root font sizing.
Not sure if it makes sense, or if at this point it's easier to override the whole common-shared.css and start applying our style, since we're drastically diverging from m-c toolkit style and our UI needs to be less brittle and prone to breakages due to toolkit changes.

URL: 1784488

(In reply to Alessandro Castellani [:aleca] from comment #8)

Bug 1784891 might be helpful for us since it introduces a class that will exclude applying that root font sizing.

Yep, that should come handy.

I think you'll also want to stop doing that:

(In reply to Alessandro Castellani [:aleca] from comment #0)

This is mostly due to our own implementation of the uiFontSize.jsm, in which we implemented a default body font size of 1rem to normalize all sizes and respect the OS scaling.

Depends on: 1784891
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Target Milestone: --- → 105 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b54c090e0816
Override the toolkit :root font size in in-content pages. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: