Closed Bug 1550035 Opened 7 years ago Closed 7 years ago

Contrast badge font is too big on Linux

Categories

(DevTools :: Accessibility Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1550040

People

(Reporter: fvsch, Unassigned)

Details

Attachments

(1 file)

The culprit:

/* accessibility.css */
.badge {
  font: message-box;
}

This resets the font-size to different sizes depending on the platform. Tends to be 11px all the time on macOS, 11px most of the times on Windows (but I've heard about some variations), and on Linux/GTK it uses the default text size for GTK which is 11pt aka 14.6667px. Screenshot show 12pt (16px) since this is what my current setting in Gnome.

The fix:

  • Ideally we would want to use font-family: system-ui here instead of font: message-box, but it's not supported (yet).
  • So what we tend to do is override the font-size:
.badge {
  font: message-box;
  font-size: var(--theme-body-font-size);
}

Fix included in the patch for bug 1550040.
I'll wait to see if that patch is going through before closing this one as a duplicate.

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

Attachment

General

Created:
Updated:
Size: