Skip to content

Commit fd4d2fa

Browse files
authored
Don't override monospace fonts with localized variants (yet). (#682) (#685)
Resolves: rdar://110021706
1 parent 01b4c6e commit fd4d2fa

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/styles/core/typography/_font-style-utils.scss

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,21 @@ $font-weight-bold: 700 !default;
5757
}
5858
$prevAttributes: $attributes;
5959
}
60-
} @else {
61-
@warn 'The font style `#{$font-style-name}` is not defined.';
62-
}
63-
//
64-
// Add support for localized font families
65-
//
66-
@if ($localizedFonts) {
67-
@each $lang, $fonts in $localizedFonts {
68-
:lang(#{$lang}) & {
69-
font-family: $fonts;
60+
61+
//
62+
// Add support for localized font families
63+
//
64+
// Note: localized monospace font families are not yet supported
65+
$-font-family: map-deep-get($font-attributes, (map-get($styles, large), font-family));
66+
@if ($localizedFonts and $-font-family != $font-mono) {
67+
@each $lang, $fonts in $localizedFonts {
68+
:lang(#{$lang}) & {
69+
font-family: $fonts;
70+
}
7071
}
7172
}
73+
} @else {
74+
@warn 'The font style `#{$font-style-name}` is not defined.';
7275
}
7376
}
7477

0 commit comments

Comments
 (0)