我不想更改占位符颜色,因为我已经完成了,但选择一个选项后,文本颜色仍然是黑色。
这是我的 HTML
<form *ngIf="videos">
<mat-form-field class="search-form">
<input type="text" placeholder="Search Gamer-Tags" aria-label="Number" matInput [formControl]="myControl"
[matAutocomplete]="auto">
<mat-autocomplete #auto="matAutocomplete" autoActiveFirstOption (optionSelected)='searchChange($event.option.value)'>
<mat-option class="auto-option" *ngFor="let option of filteredOptions | async" [value]="option">
{{option}}
</mat-option>
</mat-autocomplete>
</mat-form-field>
</form>
这是我的 SCSS
::ng-deep .mat-focused .mat-form-field-label {color: white !important;}
::ng-deep .mat-form-field-underline, ::ng-deep .mat-form-field-ripple {background-color: white !important; color: white !important }
::ng-deep .mat-form-field-empty.mat-form-field-label { color: white !important;}
::ng-deep .mat-form-field-ripple { background-color: white;}
人到中年有点甜
婷婷同学_
摇曳的蔷薇
相关分类