We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b02bfe commit f6decb4Copy full SHA for f6decb4
1 file changed
core/src/css/ionic/typography.ionic.scss
@@ -1,10 +1,18 @@
1
@use "../../themes/ionic/ionic.globals.scss" as globals;
2
3
-// TODO(ROU-10833): add font loading solution here, as a @font-face, base64 or cdn
4
html {
5
font-family: globals.$ion-font-family;
6
}
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
+
16
body {
17
@include globals.typography(globals.$ion-body-md-regular);
18
0 commit comments