【发布时间】:2018-10-09 10:16:15
【问题描述】:
当 Angular 5 材质垫选择设置为禁用时,如何更改显示所选值的文本上的字体颜色。目前它默认为灰色,我想更改它,以便在禁用和启用时都显示深蓝色。
<mat-form-field>
<mat-select placeholder="Select a Product" [(ngModel)]="selected" [disabled]="isDisabled" panelClass="my-select-panel-class">
<mat-option *ngFor="let prod of products" [value]="prod.productID">
{{ prod.key }}
</mat-option>
</mat-select>
</mat-form-field>
【问题讨论】:
标签: css angular colors angular-material