You need to apply CSS styles to your .mat-table/table selector:
.mat-sort-header-sorted .mat-sort-header-arrow {
transform: none !important;
opacity: 1 !important;
}
.mat-sort-header-arrow {
transform: none !important;
opacity: 0.54 !important;
}
Note: in some cases you need to use ::ng-deep before .mat-sort-header... for applying styles
Then you need to disable Angular animation in your table, because you will see small animation on hover, so add this to .mat-table/table selector in template:
<table
...[your inputs]
[@.disabled]="true"
>
And the last step - for example your standart sort direction is "asc" then after change one of your sort to "desc" and after that choose another one with sort "asc", you will see that icon of "desc" would not reset to your standart "asc" direction, so the solution is to set CSS styles for icons that have not defined direction:
th:not([aria-sort]) {
::ng-deep .mat-sort-header-indicator {
transform: translateY(10px) !important;
.mat-sort-header-pointer-left {
transform: rotate(45deg) !important;
}
.mat-sort-header-pointer-right {
transform: rotate(-45deg) !important;
}
}
}