mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
379a305182
commit
66dc73a5fd
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user