fix(form-field): unable to override font-size through typography config (#9463)

Fixes the form field ignoring the typography config's font size which prevents consumers from being able to override it.
This commit is contained in:
Kristiyan Kostadinov
2018-01-23 16:33:02 +01:00
committed by Jeremy Elbourn
parent 379a305182
commit 66dc73a5fd
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
$caption: mat-typography-level(12px, 20px, 400),
$button: mat-typography-level(14px, 14px, 500),
// Line-height must be unit-less fraction of the font-size.
$input: mat-typography-level(16px, 1.125, 400)
$input: mat-typography-level(inherit, 1.125, 400)
) {
// Declare an initial map with all of the levels.
+1 -4
View File
@@ -146,10 +146,7 @@ $dedupe: 0;
$wrapper-padding-bottom: ($subscript-margin-top + $line-height) * $subscript-font-scale;
.mat-form-field {
font-family: mat-font-family($config);
font-size: inherit;
font-weight: mat-font-weight($config, input);
line-height: mat-line-height($config, input);
@include mat-typography-level-to-styles($config, input);
}
.mat-form-field-wrapper {