Skip to content

Commit 4e46cfd

Browse files
committed
Applied font-size-adjust property globally
1 parent d5287d3 commit 4e46cfd

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2424
- take Markdown rendering into account before testing the maximum preview length
2525
- `<NodeContent />`
2626
- header-menu items are vertically centered now
27-
`<TabTitle />`
28-
- adjust displaying fallback symbols in different browsers
27+
- `Typography`
28+
- adjust displaying fallback symbols in different browsers
2929

3030
### Changed
3131

src/components/Tabs/tabs.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ $tab-indicator-width: 3px !default;
4646
overflow-x: hidden;
4747
text-overflow: ellipsis;
4848
white-space: nowrap;
49-
// Tab titles are user-configured and may contain Unicode symbols (e.g. "★") that fall outside
50-
// the primary font stack. Browsers pick different system fallback fonts for such characters,
51-
// causing glyphs to render at different optical sizes (smaller in Firefox).
52-
// font-size-adjust normalises the fallback font size by matching the primary font's x-height,
53-
// reducing the visual size discrepancy across browsers.
54-
font-size-adjust: from-font;
5549

5650
//min-width: 6em;
5751
}

src/components/Typography/_reset.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ select,
77
input,
88
textarea {
99
font-family: inherit;
10+
font-size-adjust: inherit;
1011
border-radius: 0;
1112
}
1213

src/components/Typography/typography.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ body {
1717
text-rendering: optimizelegibility;
1818
-webkit-font-smoothing: antialiased;
1919
-moz-osx-font-smoothing: grayscale;
20+
// User-facing text may contain Unicode symbols (e.g. "★") that fall outside the primary font stack.
21+
// Browsers pick different system fallback fonts for such characters, causing glyphs to render at
22+
// different optical sizes (smaller in Firefox). font-size-adjust normalises the fallback font size
23+
// by matching the primary font's x-height, reducing the visual size discrepancy across browsers.
24+
font-size-adjust: from-font;
2025
}
2126

2227
code {

0 commit comments

Comments
 (0)