Skip to content

Commit f6decb4

Browse files
committed
add missing rule on ionic theme
1 parent 9b02bfe commit f6decb4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

core/src/css/ionic/typography.ionic.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
@use "../../themes/ionic/ionic.globals.scss" as globals;
22

3-
// TODO(ROU-10833): add font loading solution here, as a @font-face, base64 or cdn
43
html {
54
font-family: globals.$ion-font-family;
65
}
76

7+
// Dynamic Type is an iOS-only feature, so
8+
// this should only be enabled on iOS devices.
9+
@supports (-webkit-touch-callout: none) {
10+
html {
11+
font: var(--ionic-dynamic-font, 16px #{globals.$ion-font-family});
12+
font-family: globals.$ion-font-family;
13+
}
14+
}
15+
816
body {
917
@include globals.typography(globals.$ion-body-md-regular);
1018
}

0 commit comments

Comments
 (0)