I need to change default arrow icon from angular material matSort to a custom arrow.
The current code
Try this.
app.component.ts
import {Component, ViewEncapsulation} from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
title = 'app';
}
app.component.css
.mat-sort-header-stem {
height: 3px !important;
width: 10px !important;
transform: rotate(180deg) !important;
}
.mat-sort-header-pointer-left, .mat-sort-header-pointer-right {
width: 7px !important;
height: 3px !important;
}
.mat-sort-header-pointer-middle{
width: 0px !important;
height: 0px !important;
}