This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191///
9292@mixin mdc-text-field-height ($height ) {
9393 height : $height ;
94+
95+ // Target only dense text field.
96+ @if $height <= 40px {
97+ // Target only IE 11
98+ @media all and (-ms-high-contrast : none ), (-ms-high-contrast : active ) {
99+ .mdc-text-field__input {
100+ // Set line-height to the height of input element excluding padding & border.
101+ line-height :
102+ $height
103+ - $mdc-text-field-input-padding
104+ - $mdc-text-field-input-padding-top
105+ - $mdc-text-field-input-padding-bottom
106+ - $mdc-text-field-input-border-bottom ;
107+ }
108+ }
109+ }
94110}
95111
96112///
363379 $resolved-radius : nth (mdc-shape-resolve-percentage-radius ($text-field-height , mdc-shape-prop-value ($radius )), 1 );
364380
365381 @if (length (mdc-shape-prop-value ($radius )) > 1 ) {
366- // stylelint-disable-next-line max-line-length
382+ // stylelint-disable max-line-length
367383 @warn " mdc-text-field-outline-shape-radius only supports a single radius; see https://github.com/material-components/material-components-web/issues/4140" ;
384+ // stylelint-enable
368385 }
369386
370387 .mdc-notched-outline {
Original file line number Diff line number Diff line change @@ -91,4 +91,7 @@ $mdc-text-field-outlined-dense-with-leading-icon-label-position-x: 21px !default
9191$mdc-text-field-textarea-label-position-y : 130% !default ;
9292$mdc-text-field-helper-line-padding : 16px !default ;
9393$mdc-text-field-input-padding : 16px !default ;
94+ $mdc-text-field-input-padding-top : 20px !default ;
95+ $mdc-text-field-input-padding-bottom : 6px !default ;
96+ $mdc-text-field-input-border-bottom : 1px !default ;
9497// Note that the scale factor is an eyeballed approximation of what's shown in the mocks.
Original file line number Diff line number Diff line change 8585 box-sizing : border-box ;
8686 width : 100% ;
8787 height : 100% ;
88- padding : 20px 16px 6px ;
88+ padding :
89+ $mdc-text-field-input-padding-top
90+ $mdc-text-field-input-padding
91+ $mdc-text-field-input-padding-bottom ;
8992 transition : mdc-text-field-transition (opacity );
9093 border : none ;
9194 border-bottom : 1px solid ;
You can’t perform that action at this time.
0 commit comments