Skip to content

Commit 09bbe3d

Browse files
authored
Merge pull request #4301 from crazyserver/MOBILE-4721
MOBILE-4721 lang: Add tall language support
2 parents 6dc0af9 + 3e46cbd commit 09bbe3d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/theme/components/language.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Some languages have tall typefaces and it may be necessary to adjust the line height.
2+
:root[lang=ar],
3+
:root[lang=bn],
4+
:root[lang=fa],
5+
:root[lang=gu],
6+
:root[lang=hi],
7+
:root[lang=km],
8+
:root[lang=kn],
9+
:root[lang=ml],
10+
:root[lang=mr],
11+
:root[lang=my],
12+
:root[lang=ne],
13+
:root[lang=pa],
14+
:root[lang=si],
15+
:root[lang=ta],
16+
:root[lang=te],
17+
:root[lang=th],
18+
:root[lang=ur],
19+
:root[lang=vi] {
20+
--mdl-typography-heading-lineHeight: 200%;
21+
--mdl-typography-body-lineHeight: 170%;
22+
--mdl-typography-link-lineHeight: 170%;
23+
--mdl-typography-subtitle-lineHeight: 170%;
24+
* {
25+
line-height: 170%;
26+
}
27+
}

src/theme/theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@import "theme.base.scss";
1919

2020
/* Components */
21+
@import "components/language.scss";
2122
@import "components/collapsible-header.scss";
2223
@import "components/collapsible-item.scss";
2324
@import "components/error-accordion.scss";

0 commit comments

Comments
 (0)