Skip to content

Commit d9977bd

Browse files
bpetexjelbourn
authored andcommitted
fix(typography): use calc to allow css variables (#16475)
1 parent 3638886 commit d9977bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/material/core/typography/_typography.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
// and h6 at 0.67em.
9797
.mat-h5, #{$selector} h5 {
9898
@include mat-typography-font-shorthand(
99-
mat-font-size($config, body-1) * 0.83,
99+
// calc is used here to support css variables
100+
calc(#{mat-font-size($config, body-1)} * 0.83),
100101
mat-font-weight($config, body-1),
101102
mat-line-height($config, body-1),
102103
mat-font-family($config, body-1)
@@ -107,7 +108,8 @@
107108

108109
.mat-h6, #{$selector} h6 {
109110
@include mat-typography-font-shorthand(
110-
mat-font-size($config, body-1) * 0.67,
111+
// calc is used here to support css variables
112+
calc(#{mat-font-size($config, body-1)} * 0.67),
111113
mat-font-weight($config, body-1),
112114
mat-line-height($config, body-1),
113115
mat-font-family($config, body-1)

0 commit comments

Comments
 (0)