Skip to content

Commit 22cf5ae

Browse files
committed
fix(material-experimental/mdc-form-field): add padding to subscript to align with spec
1 parent e01ebf6 commit 22cf5ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material-experimental/mdc-form-field/_form-field-subscript.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,15 @@
5959
// combination of the subscript's margin and line-height, but we need to multiply by the
6060
// subscript font scale factor since the subscript has a reduced font size.
6161
$subscript-min-height: ($subscript-margin-top + $line-height) * $subscript-font-scale;
62+
// The horizontal padding between the edge of the text box and the start of the subscript text.
63+
$subscript-horizontal-padding: 16px;
6264

6365
// The subscript wrapper has a minimum height to avoid that the form-field
6466
// jumps when hints or errors are displayed.
6567
.mat-mdc-form-field-subscript-wrapper {
6668
min-height: $subscript-min-height;
6769
font-size: $subscript-font-size;
6870
margin-top: $subscript-margin-top;
71+
padding: 0 $subscript-horizontal-padding;
6972
}
7073
}

0 commit comments

Comments
 (0)