|
30 | 30 | $mat-form-field-legacy-dedupe: 0; |
31 | 31 |
|
32 | 32 | // Applies a floating label above the form field control itself. |
33 | | -@mixin _mat-form-field-label-floating($font-scale, $infix-padding, $infix-margin-top) { |
| 33 | +@mixin _mat-form-field-legacy-label-floating($font-scale, $infix-padding, $infix-margin-top) { |
34 | 34 | // We use perspective to fix the text blurriness as described here: |
35 | 35 | // http://www.useragentman.com/blog/2014/05/04/fixing-typography-inside-of-2-d-css-transforms/ |
36 | 36 | // This results in a small jitter after the label floats on Firefox, which the |
@@ -83,21 +83,21 @@ $mat-form-field-legacy-dedupe: 0; |
83 | 83 | &.mat-form-field-can-float { |
84 | 84 | &.mat-form-field-should-float .mat-form-field-label, |
85 | 85 | .mat-input-server:focus + .mat-form-field-label-wrapper .mat-form-field-label { |
86 | | - @include _mat-form-field-label-floating( |
| 86 | + @include _mat-form-field-legacy-label-floating( |
87 | 87 | $subscript-font-scale, $infix-padding, $infix-margin-top); |
88 | 88 | } |
89 | 89 |
|
90 | 90 | .mat-form-field-autofill-control:-webkit-autofill + .mat-form-field-label-wrapper |
91 | 91 | .mat-form-field-label { |
92 | | - @include _mat-form-field-label-floating( |
| 92 | + @include _mat-form-field-legacy-label-floating( |
93 | 93 | $subscript-font-scale, $infix-padding, $infix-margin-top); |
94 | 94 | } |
95 | 95 |
|
96 | 96 | // Server-side rendered matInput with a label attribute but label not shown |
97 | 97 | // (used as a pure CSS stand-in for mat-form-field-should-float). |
98 | 98 | .mat-input-server[label]:not(:label-shown) + .mat-form-field-label-wrapper |
99 | 99 | .mat-form-field-label { |
100 | | - @include _mat-form-field-label-floating( |
| 100 | + @include _mat-form-field-legacy-label-floating( |
101 | 101 | $subscript-font-scale, $infix-padding, $infix-margin-top); |
102 | 102 | } |
103 | 103 | } |
|
0 commit comments