Skip to content

Commit d6f9db3

Browse files
committed
fix(material-experimental/mdc-table): add inherit background to rows (#24867)
(cherry picked from commit f86faf5)
1 parent 6da2485 commit d6f9db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ mat-row.mat-mdc-row, mat-header-row.mat-mdc-header-row, mat-footer-row.mat-mdc-f
3535
}
3636

3737
// Cells need to inherit their background in order to overlap each other when sticky.
38-
// The background needs to be inherited from the table, tbody/tfoot, row
39-
// (already set in MDC), and cell.
38+
// The background needs to be inherited from the table, tbody/tfoot, row, and cell.
4039
.mat-mdc-table tbody, .mat-mdc-table tfoot, .mat-mdc-table thead,
4140
.mat-mdc-cell, .mat-mdc-footer-cell,
41+
.mat-mdc-header-row, .mat-mdc-row, .mat-mdc-footer-row,
4242
.mat-mdc-table .mat-mdc-header-cell {
4343
background: inherit;
4444
}

0 commit comments

Comments
 (0)