Skip to content

Commit 15bc94b

Browse files
committed
test: update cdk table sticky test to work with Safari v15
Updates the CDK table flex-layout sticky to work with Safari v15. The test starts failing because the `position: sticky` does not work as expected for the custom elements without an explicit `display`. Updating the fixture to actually align columns in a row horizontally fixes this and makes sense, given the name of the fixture being about flex-based table.
1 parent dea0b15 commit 15bc94b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cdk/table/table.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,6 +2435,9 @@ class StickyPositioningListenerTest implements StickyPositioningListener {
24352435
display: block;
24362436
width: 20px;
24372437
}
2438+
.cdk-header-row, .cdk-row, .cdk-footer-row {
2439+
display: flex;
2440+
}
24382441
`,
24392442
],
24402443
providers: [{provide: STICKY_POSITIONING_LISTENER, useExisting: StickyFlexLayoutCdkTableApp}],

0 commit comments

Comments
 (0)