Skip to content

Commit

Permalink
fix(typography): use calc to allow css variables (#16475)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetex authored and andrewseguin committed Jul 29, 2019
1 parent bf66d81 commit 6013036
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/material/core/typography/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
// and h6 at 0.67em.
.mat-h5, #{$selector} h5 {
@include mat-typography-font-shorthand(
mat-font-size($config, body-1) * 0.83,
// calc is used here to support css variables
calc(#{mat-font-size($config, body-1)} * 0.83),
mat-font-weight($config, body-1),
mat-line-height($config, body-1),
mat-font-family($config, body-1)
Expand All @@ -107,7 +108,8 @@

.mat-h6, #{$selector} h6 {
@include mat-typography-font-shorthand(
mat-font-size($config, body-1) * 0.67,
// calc is used here to support css variables
calc(#{mat-font-size($config, body-1)} * 0.67),
mat-font-weight($config, body-1),
mat-line-height($config, body-1),
mat-font-family($config, body-1)
Expand Down

0 comments on commit 6013036

Please sign in to comment.