44@import ' ../core/typography/typography-utils' ;
55
66
7- // Theme styles that only apply to the box variant of the form-field.
7+ // Theme styles that only apply to the box appearance of the form-field.
88
99@mixin mat-form-field-box-theme ($theme ) {
1010 $foreground : map-get ($theme , foreground );
1414 $box-disabled-background : mat-color ($foreground , base , if ($is-dark-theme , 0.05 , 0.03 ));
1515 $underline-color : mat-color ($foreground , divider , if ($is-dark-theme , 0.7 , 0.42 ));
1616
17- .mat-form-field-variant -box {
17+ .mat-form-field-appearance -box {
1818 .mat-form-field-flex {
1919 background-color : $box-background ;
2020 }
@@ -57,26 +57,26 @@ $mat-form-field-box-dedupe: 0;
5757 $infix-padding : 0.5em ;
5858 // The margin applied to the form-field-infix to reserve space for the floating label.
5959 $infix-margin-top : 1em * $line-height * $subscript-font-scale ;
60- // The amount we offset the label in the box variant .
61- $box-variant -label-offset : -0.5em * $line-height ;
60+ // The amount we offset the label in the box appearance .
61+ $box-appearance -label-offset : -0.5em * $line-height ;
6262
63- .mat-form-field-variant -box {
63+ .mat-form-field-appearance -box {
6464 .mat-form-field-label {
65- margin-top : $box-variant -label-offset ;
65+ margin-top : $box-appearance -label-offset ;
6666 }
6767
6868 & .mat-form-field-can-float {
6969 & .mat-form-field-should-float .mat-form-field-label ,
7070 .mat-input-server :focus + .mat-form-field-label-wrapper .mat-form-field-label {
7171 @include _mat-form-field-label-floating (
72- $subscript-font-scale , $infix-padding + $box-variant -label-offset ,
72+ $subscript-font-scale , $infix-padding + $box-appearance -label-offset ,
7373 $infix-margin-top );
7474 }
7575
7676 .mat-form-field-autofill-control :-webkit-autofill + .mat-form-field-label-wrapper
7777 .mat-form-field-label {
7878 @include _mat-form-field-label-floating (
79- $subscript-font-scale , $infix-padding + $box-variant -label-offset ,
79+ $subscript-font-scale , $infix-padding + $box-appearance -label-offset ,
8080 $infix-margin-top );
8181 }
8282
@@ -85,7 +85,7 @@ $mat-form-field-box-dedupe: 0;
8585 .mat-input-server [label ]:not (:label-shown ) + .mat-form-field-label-wrapper
8686 .mat-form-field-label {
8787 @include _mat-form-field-label-floating (
88- $subscript-font-scale , $infix-padding + $box-variant -label-offset ,
88+ $subscript-font-scale , $infix-padding + $box-appearance -label-offset ,
8989 $infix-margin-top );
9090 }
9191 }
0 commit comments