Skip to content

Commit

Permalink
fix: add toolbar to treelist sticky headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nstoychev authored and joneff committed Jul 25, 2019
1 parent 37958cf commit 1ca69f2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/default/scss/treelist/_layout.scss
Expand Up @@ -41,15 +41,20 @@
// Sticky headers
.k-treelist-scrollable {
> table,
.k-grid-header,
.k-grid-header tr,
.k-grid-header th,
.k-grid-header tr:hover {
.k-grid-header th {
background-color: inherit;
}

.k-grid-toolbar,
.k-grid-header th {
position: sticky;
z-index: 1;
}

.k-grid-toolbar {
top: 0px;
left: 0px;
}
}

Expand Down
11 changes: 11 additions & 0 deletions packages/material/scss/treelist/_layout.scss
@@ -1 +1,12 @@
@import "~@progress/kendo-theme-default/scss/treelist/layout";

@include exports("treelist/layout/material") {
// Sticky headers
.k-treelist-scrollable {
.k-grid-toolbar,
.k-grid-header,
.k-grid-header tr:hover {
background-color: inherit;
}
}
}

0 comments on commit 1ca69f2

Please sign in to comment.