I want to style the table rows and cells in an Angular Material Table in Angular.
But the "old" examples with simple css styles don't work anymore in Angular 15:
table {
width: 100%;
border-spacing: 0 8px !important;
}
td.mat-cell {
padding: 16px 0 16px 0;
border-bottom: 2px solid #ffa600;
border-top: 2px solid #ffa600;
}
tr.mat-row {
background: #79a1d8;
}
No matter what styles in the component's css file I use, the table design stays the same.
Here is the basic Table-Example of the Angular Material Design - extended by some styles - with no effects.
https://stackblitz.com/edit/angular-kwfygf?file=src/app/table-basic-example.css
What does Angular changed from older versions like version 8 to the current version 15, that let the table styles fail?