正如标题说的那样,我更新了IntelliJ的版本,现在角材料选择器::ng-深度显示我被弃用了。
示例:
<mat-form-field class="register-custom-select">
<mat-select formControlName="gender" required>
<mat-option class="register-custom-option" *ngFor="let gender of genders
[value]="gender.genderValue">
{{ gender.genderValue }}
</mat-option>
</mat-select>
</mat-form-field>
::ng-deep .register-custom-select .mat-form-field-underline {
background-color: #838383;
}我需要更改什么才能使选择器不再受欢迎,并且仍然具有样式?
发布于 2022-06-26 15:17:32
对于我来说,使用globale样式可以解决以下问题
在您的style.css余可以添加
.register-custom-select .mat-form-field-underline {
background-color: #838383!important;
}https://stackoverflow.com/questions/72760551
复制相似问题