【发布时间】:2018-05-20 15:39:05
【问题描述】:
有什么方法可以从mat-chips in Angular Material 中移除 box-shadow 吗?
<mat-chip-list>
<mat-chip>Papadum</mat-chip>
</mat-chip-list>
这些芯片似乎具有用于 box-shadow 的 CSS 样式,但禁用此样式或覆盖它不起作用。
transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1);
我怀疑必须有一种简单的方法来禁用这个阴影,但我想不通。
【问题讨论】:
-
使用 viewEncapsulation.none。如果 mat-chips 具有内联样式,您可以在您的 css 中使用 !important
-
在我的 CSS 中使用 !important 成功了!谢谢!
标签: css angular angular-material box-shadow