Skip to content

Commit 692a127

Browse files
committed
tests fixed
1 parent 51b759f commit 692a127

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
@use '../../material/core/style/vendor-prefixes';
12
@import '@material/data-table/mixins.import';
23
@import '../mdc-helpers/mdc-helpers';
34

45
@include mdc-data-table-core-styles($query: $mat-base-styles-without-animation-query);
6+
7+
.mat-table-sticky {
8+
@include vendor-prefixes.position-sticky;
9+
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export class MatTable<T> extends CdkTable<T> implements OnInit {
2727
/** Overrides the sticky CSS class set by the `CdkTable`. */
2828
protected stickyCssClass = 'mat-mdc-table-sticky';
2929

30+
/** Overrides the need to add position: sticky on every sticky cell element in `CdkTable`. */
31+
protected needsPositionStickyOnElement = false;
32+
3033
// After ngOnInit, the `CdkTable` has created and inserted the table sections (thead, tbody,
3134
// tfoot). MDC requires the `mdc-data-table__content` class to be added to the body.
3235
ngOnInit() {

0 commit comments

Comments
 (0)