我想在 select 后设置与 mat-select focus 相同的颜色。我该怎么办?
我在文档中找不到任何与此相关的内容。
<mat-form-field>
<mat-label>Choose an option</mat-label>
<mat-select>
<mat-option value="option1">Option 1</mat-option>
</mat-select>
</mat-form-field>
::ng-deep .custom-select.mat-focused .mat-select-value {
color: #YourDesiredColor;
}
.mat-form-field-appearance-outline .mat-form-field-outline {
color: "your color";
}
input.mat-input-element {
color: "your color";
}
请检查下面的堆栈闪电战代码