File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
46
46
border-top : $mat-form-field-select-arrow-height solid ;
47
47
position : absolute ;
48
48
right : 0 ;
49
+ top : 50% ;
50
+ margin-top : - #{math .div ($mat-form-field-select-arrow-height , 2 )} ;
49
51
50
52
// Make the arrow non-clickable so the user can click on the form control under it.
51
53
pointer-events : none ;
Original file line number Diff line number Diff line change @@ -57,9 +57,13 @@ $scale: 0.75 !default;
57
57
display : inline-flex ;
58
58
align-items : center ;
59
59
60
- // When used in a box appearance form-field the arrow should be shifted up 40% .
60
+ // When used in a fill appearance with a label, form-field the arrow should be shifted up 8px .
61
61
.mat-form-field-appearance-fill & {
62
- transform : translateY (-40% );
62
+ transform : translateY (-8px );
63
+ }
64
+
65
+ .mat-form-field-appearance-fill .mdc-text-field--no-label & {
66
+ transform : none ;
63
67
}
64
68
}
65
69
You can’t perform that action at this time.
0 commit comments