角材料19造型

问题描述 投票:0回答:1
https://material.angular.io/styling

)设计形式。 注意我使用了buttro-verriders mixin,它的工作正好很好:

@use "@angular/material" as mat; @include mat.button-overrides( ( filled-container-color: green, ) );

但这不起作用:
@use "@angular/material" as mat;

@include mat.form-field-overrides(
  (
    filled-caret-color: orange,
    filled-focus-active-indicator-color: red,
    outlined-caret-color: orange,
    container-height: 2,
  )
);

我弄清楚了。 @include垫子...必须包裹在选择器中才能工作。
angular angular-material
1个回答
0
投票

or

@use "@angular/material" as mat;

mat-form-field{
  @include mat.form-field-overrides(
    (
      filled-caret-color: orange,
      filled-focus-active-indicator-color: red,
      outlined-caret-color: orange,
      container-height: 2,
    )
  );
}

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.