In order to support all languages and scripts, use `normal` line height only
Categories
(Toolkit :: Themes, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: jules, Assigned: jules)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
It has been brought to the design systems team attention that our existing line height design token values can compromise certain scripts, such as Khmer, for example. Upon getting Jonathan Kew's, who specializes in fonts and scripts, feedback, we have discussed that normal
is a better suited value and solution to guarantee proper line spacing in all languages.
Jkew's helpful feedback:
So to clarify what normal does: it doesn't simply map to a particular number (1.2 or anything else), what it does is to look at the first available font from the font-family list -- which may be a specific named font, or may be a CSS generic like sans-serif, in which case it will be resolved depending on the Firefox font prefs and the language/locale involved -- and then computes a line height based on the metrics found in that font. For non-Latin fonts, that can end up being quite different from typical Latin values; e.g. in writing systems that use a lot of tall or "stacked-up" characters, it'll probably be quite a bit larger.
Let's make sure we get rid of line height design tokens and rely on the normal
line height default.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Depends on D197612
Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Backed out for causing mochitest failure on test_moz_button_group.html
Comment 6•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/dd78e55fe030
https://hg.mozilla.org/mozilla-central/rev/5085991b354e
Assignee | ||
Updated•1 year ago
|
Description
•