Skip to content

Commit

Permalink
fix(pivotgrid): bottom border on collapsed items
Browse files Browse the repository at this point in the history
  • Loading branch information
TeyaVes authored and joneff committed Feb 14, 2019
1 parent 1bbd45e commit 23e00f5
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/bootstrap/scss/pivotgrid/_theme.scss
Expand Up @@ -22,7 +22,8 @@
background-color: $panel-bg;
}

.k-pivot-toolbar {
.k-pivot-toolbar,
.k-fieldselector {
border-color: $grid-header-border;
}
.k-pivot-table,
Expand Down Expand Up @@ -72,4 +73,4 @@
background-color: $header-bg;
}
}
}
}
11 changes: 11 additions & 0 deletions packages/default/scss/pivotgrid/_layout.scss
Expand Up @@ -96,6 +96,17 @@
vertical-align: top;
}

.k-pivot .k-grid tr {
.k-grid-footer {
border-bottom-width: 0;
}
&:last-child:not(.k-grid-footer) {
td:not(.k-grid-footer) {
border-bottom-width: 1px;
}
}
}

.k-pivot-layout .k-grid td {
border-bottom-width: 1px;
}
Expand Down
1 change: 1 addition & 0 deletions packages/default/scss/pivotgrid/_theme.scss
Expand Up @@ -20,6 +20,7 @@

.k-pivot-toolbar,
.k-pivot-table,
.k-fieldselector,
.k-fieldselector .k-list-container,
.k-fieldselector .k-columns > div,
.k-pivot-rowheaders > .k-grid td:first-child,
Expand Down
14 changes: 13 additions & 1 deletion packages/material/scss/pivotgrid/_theme.scss
Expand Up @@ -19,6 +19,7 @@
.k-pivot-layout .k-grid-footer,
.k-pivot-layout > tbody > tr:first-child > td:first-child {
background-color: $pivotgrid-alt-bg;
border-color: $pivotgrid-chrome-border;
}
.k-pivot-rowheaders .k-grid {
background: none;
Expand All @@ -38,11 +39,22 @@
}

.k-pivot-rowheaders > .k-grid td,
.k-pivot-rowheaders > .k-grid td:first-child {
.k-pivot-rowheaders > .k-grid td:first-child:not(.k-first) {
border-bottom-color: transparent;
border-left-color: $pivotgrid-chrome-border;
}

.k-pivot-rowheaders > .k-grid tr {
&:last-child td:not(.k-grid-footer),
&:nth-last-child(2) td:not(.k-grid-footer) {
border-bottom-color: $pivotgrid-chrome-border;
}
}

.k-pivot-rowheaders .k-grid tr .k-grid-footer {
border-bottom-width: 0;
}

.k-pivot-layout .k-grid .k-alt {
border-left-color: $pivotgrid-chrome-border;

Expand Down
Binary file modified tests/visual/output/default/pivotconfigurator.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/visual/output/material/pivotconfigurator.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 23e00f5

Please sign in to comment.