Skip to content

Commit

Permalink
fix(material-experimental/mdc-table): add background inherit to heade…
Browse files Browse the repository at this point in the history
…r cells (#22751)

(cherry picked from commit ade0901)
  • Loading branch information
andrewseguin authored and mmalerba committed May 29, 2021
1 parent 7bd02f6 commit 6b5d8e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/material-experimental/mdc-table/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ mat-row.mat-mdc-row, mat-header-row.mat-mdc-header-row, mat-footer-row.mat-mdc-f
// Cells need to inherit their background in order to overlap each other when sticky.
// The background needs to be inherited from the table, tbody/tfoot, row
// (already set in MDC), and cell.
.mat-mdc-table tbody, .mat-mdc-table tfoot,
.mat-mdc-cell, .mat-mdc-footer-cell {
.mat-mdc-table tbody, .mat-mdc-table tfoot, .mat-mdc-table thead,
.mat-mdc-cell, .mat-mdc-footer-cell,
.mat-mdc-table .mat-mdc-header-cell {
background: inherit;
}

Expand Down

0 comments on commit 6b5d8e4

Please sign in to comment.