Skip to content

Commit 31e9b02

Browse files
author
Peter Balas
committed
fix: errors when defining typography with css variables
* Fixes invalid operation error for font-size calculation with css variables
1 parent 5b3e846 commit 31e9b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/core/typography/_typography.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
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(mat-font-size($config, body-1) * 0.83),
100100
mat-font-weight($config, body-1),
101101
mat-line-height($config, body-1),
102102
mat-font-family($config, body-1)
@@ -107,7 +107,7 @@
107107

108108
.mat-h6, #{$selector} h6 {
109109
@include mat-typography-font-shorthand(
110-
mat-font-size($config, body-1) * 0.67,
110+
calc(mat-font-size($config, body-1) * 0.67),
111111
mat-font-weight($config, body-1),
112112
mat-line-height($config, body-1),
113113
mat-font-family($config, body-1)

0 commit comments

Comments
 (0)