Help Please, Mat Paginator Background is Not Changing, I want it to be transparent and I used the Below Code
::ng-deep .mat-paginator {
background-color: transparent;
}
You're almost there, in this case, you don't need to use::ng-deep, which is being deprecated.
The reason why it's not working is that this code is expecting a class called mat-paginator and not a tag. So, remove the '.' (dot) in front of your mat-paginator and it will work.
YOUR CSS:
mat-paginator {
background-color: transparent;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.