Skip to content

Commit

Permalink
MOBILE-4721 lang: Add tall language support
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Jan 28, 2025
1 parent 6dc0af9 commit 3e46cbd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/theme/components/language.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Some languages have tall typefaces and it may be necessary to adjust the line height.
:root[lang=ar],
:root[lang=bn],
:root[lang=fa],
:root[lang=gu],
:root[lang=hi],
:root[lang=km],
:root[lang=kn],
:root[lang=ml],
:root[lang=mr],
:root[lang=my],
:root[lang=ne],
:root[lang=pa],
:root[lang=si],
:root[lang=ta],
:root[lang=te],
:root[lang=th],
:root[lang=ur],
:root[lang=vi] {
--mdl-typography-heading-lineHeight: 200%;
--mdl-typography-body-lineHeight: 170%;
--mdl-typography-link-lineHeight: 170%;
--mdl-typography-subtitle-lineHeight: 170%;
* {
line-height: 170%;
}
}
1 change: 1 addition & 0 deletions src/theme/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@import "theme.base.scss";

/* Components */
@import "components/language.scss";
@import "components/collapsible-header.scss";
@import "components/collapsible-item.scss";
@import "components/error-accordion.scss";
Expand Down

0 comments on commit 3e46cbd

Please sign in to comment.