Skip to content

Commit ade0901

Browse files
authored
fix(material-experimental/mdc-table): add background inherit to header cells (#22751)
1 parent 2a401e8 commit ade0901

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/material-experimental/mdc-table/table.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ mat-row.mat-mdc-row, mat-header-row.mat-mdc-header-row, mat-footer-row.mat-mdc-f
3131
// Cells need to inherit their background in order to overlap each other when sticky.
3232
// The background needs to be inherited from the table, tbody/tfoot, row
3333
// (already set in MDC), and cell.
34-
.mat-mdc-table tbody, .mat-mdc-table tfoot,
35-
.mat-mdc-cell, .mat-mdc-footer-cell {
34+
.mat-mdc-table tbody, .mat-mdc-table tfoot, .mat-mdc-table thead,
35+
.mat-mdc-cell, .mat-mdc-footer-cell,
36+
.mat-mdc-table .mat-mdc-header-cell {
3637
background: inherit;
3738
}
3839

0 commit comments

Comments
 (0)