File tree 1 file changed +5
-0
lines changed
src/material-experimental/mdc-form-field
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 43
43
}
44
44
}
45
45
46
+ // We need to define our own typography for the subscript because we don't include MDC's
47
+ // helper text in our MDC based form field
46
48
@mixin mat-mdc-private-form-field-subscript-typography ($config-or-theme ) {
47
49
$config : mat-get-typography-config ($config-or-theme );
48
50
// The unit-less line-height from the font config.
59
61
// combination of the subscript's margin and line-height, but we need to multiply by the
60
62
// subscript font scale factor since the subscript has a reduced font size.
61
63
$subscript-min-height : ($subscript-margin-top + $line-height ) * $subscript-font-scale ;
64
+ // The horizontal padding between the edge of the text box and the start of the subscript text.
65
+ $subscript-horizontal-padding : 16px ;
62
66
63
67
// The subscript wrapper has a minimum height to avoid that the form-field
64
68
// jumps when hints or errors are displayed.
65
69
.mat-mdc-form-field-subscript-wrapper {
66
70
min-height : $subscript-min-height ;
67
71
font-size : $subscript-font-size ;
68
72
margin-top : $subscript-margin-top ;
73
+ padding : 0 $subscript-horizontal-padding ;
69
74
}
70
75
}
You can’t perform that action at this time.
0 commit comments