如何在Angular 9中使用MatSort删除材料行标题的轮廓?

时间:2020-06-07 16:58:45

标签: angular sass angular-material angular-material-table

在我的Material表中实现tidy --indent yes --indent-spaces 4 --quiet yes --tidy-mark no index.html 后遇到问题。点击标题列时显示标题列的轮廓

enter image description here

是否可以禁用它?如果可能的话,请帮助我。

我实现了材料表的排序,如以下链接所示: https://material.angular.io/components/table/overview#sorting

2 个答案:

答案 0 :(得分:1)

在style.css中使用此代码

 .mat-sort-header-button {
    outline: none !important;
  }

答案 1 :(得分:1)

截至 2021 年 5 月,我必须使用以下内容:

::ng-deep .mat-sort-header-container {
  box-shadow: none !important;
}