Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit a498a28

Browse files
touficbatacheamsheehan
authored andcommitted
fix(textfield): Add font styles to input, remove from mdc wrapper (#908)
1 parent 27671de commit a498a28

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/mdc-textfield/mdc-textfield.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,18 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
3535

3636
// postcss-bem-linter: define textfield
3737
.mdc-textfield {
38-
@include mdc-typography-base;
39-
// We use only a subset of the MDC typography values here as changing things such as line-height
40-
// affects how the labels are transformed.
41-
@each $prop in (font-size, letter-spacing) {
42-
#{$prop}: map-get(map-get($mdc-typography-styles, subheading2), $prop);
43-
}
44-
4538
display: inline-block;
4639
margin-bottom: 8px;
4740
will-change: opacity, transform, color;
4841

4942
&__input {
5043
@include mdc-theme-prop(color, text-primary-on-light);
44+
@include mdc-typography-base;
45+
// We use only a subset of the MDC typography values here as changing things such as line-height
46+
// affects how the labels are transformed.
47+
@each $prop in (font-size, letter-spacing) {
48+
#{$prop}: map-get(map-get($mdc-typography-styles, subheading2), $prop);
49+
}
5150

5251
padding: 0 0 8px;
5352
border: none;

0 commit comments

Comments
 (0)