Skip to content

Commit c3bed15

Browse files
committed
fixup! refactor(material/table): switch to tokens API
1 parent c1bbdbe commit c3bed15

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/material/table/table.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,10 @@ mat-row.mat-mdc-row, mat-header-row.mat-mdc-header-row, mat-footer-row.mat-mdc-f
116116

117117
// Flex rows should not set a definite height, but instead stretch to the height of their
118118
// children. Otherwise, the cells grow larger than the row and the layout breaks.
119-
.mat-mdc-flex-table {
120-
@include token-utils.create-token-values(tokens-mat-table.$prefix, (
121-
header-container-height: auto,
122-
footer-container-height: auto,
123-
row-item-container-height: auto,
124-
));
119+
.mat-mdc-table mat-header-row.mat-mdc-header-row,
120+
.mat-mdc-table mat-row.mat-mdc-row,
121+
.mat-mdc-table mat-footer-row.mat-mdc-footer-cell {
122+
height: unset;
125123
}
126124

127125
// Flex cells should stretch to the height of their parent. This was okay for the legacy

src/material/table/table.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export class MatRecycleRows {}
4545
host: {
4646
'class': 'mat-mdc-table mdc-data-table__table',
4747
'[class.mdc-table-fixed-layout]': 'fixedLayout',
48-
'[class.mat-mdc-flex-table]': '!_isNativeHtmlTable',
4948
'ngSkipHydration': '',
5049
},
5150
providers: [

0 commit comments

Comments
 (0)