How can I change the next and previous buttons on the mat-paginator in Angular 15.
<mat-paginator
id="paginator"
#paginator
[length]="totalPosts"
[pageSize]="10"
(page)="handlePageChange($event)"
[hidePageSize]="true"
>
</mat-paginator>
I've tried the following
::ng-deep .mat-paginator .mat-icon-button
{
background-color: red !important;
}
or
.mat-paginator-navigation-next,
.mat-paginator-navigation-previous {
color: red;
}
or
::ng-deep .mat-paginator-navigation-next,
::ng-deep .mat-paginator-navigation-previous {
color: red !important;
}`
How can I change the next and previous buttons? I appreciate any help.
When dealing with SVG icon to change it is color you should use fill property instead of background
Try this:
Example