【发布时间】:2023-01-11 18:44:48
【问题描述】:
我想用外观“轮廓”更改 Mat-Form-Field 的外观。
所以它应该有一个白色的背景和白色的边框。
我们已经尝试使用:
encapsulation: ViewEncapsulation.none
然后
.mat-form-field-appearance-outline .mat-form-field-outline-thick {
color: white;
}
我们还尝试使用 ::ng-deep,尽管它已被弃用。
最后的手段是改变整个 Angular 主题。
有谁知道这是怎么做到的吗?
【问题讨论】:
-
有些像这个SO 或这个another one?
标签: angular sass angular-material form-fields