Skip to content

Commit

Permalink
fix(Table): correct right border visibility when stickied
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincharity committed Oct 25, 2019
1 parent 811a509 commit 0294049
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion terminus-ui/table/src/table.component.scss
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
--header-bg: #{color(utility, light)};
--header-text-color: #{color(pure, dark)};
--border-color: #{color(utility, light)};
--header-border-color: #{color(utility)};
$primary: color(primary);
--drop-bg: #{desaturate(lighten($primary, 66%), 70%)};
// NOTE: This must be above 40 as that is the number of header cell z-indexes set
@@ -182,7 +183,7 @@
// Header cell
.ts-header-cell {
background-color: var(--header-bg);
border-bottom: 1px solid color(utility);
border-bottom: 1px solid var(--header-border-color);
border-top: none;
padding: spacing(default);
position: sticky;
@@ -192,6 +193,10 @@
border-left: 1px solid color(utility);
}

&.ts-table--sticky {
border-right: 1px solid var(--header-border-color);
}

// Reverse the natural z-index order so that all borders on the right created with box-shadow are visible above the following cell.
// Supports up to 40 columns
$possible-columns: 40;

0 comments on commit 0294049

Please sign in to comment.