Skip to content

Commit

Permalink
feat(Table): scrollbars now always visible if there is scrollable con…
Browse files Browse the repository at this point in the history
…tent

ISSUES CLOSED: #1616
  • Loading branch information
benjamincharity committed Aug 7, 2019
1 parent f409c35 commit 4bbe00e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terminus-ui/scss/helpers/_scrollbars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ $defaultColor: #{color(pure)};
background-color: $color;
border-radius: $webkit-default-radius;
}

&::-webkit-scrollbar-corner {
background-color: $color;
}
}
2 changes: 2 additions & 0 deletions terminus-ui/table/src/table.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import './../../scss/helpers/color';
@import './../../scss/helpers/layout';
@import './../../scss/helpers/reset';
@import './../../scss/helpers/scrollbars';
@import './../../scss/helpers/spacing';
@import './../../scss/helpers/typography';

Expand Down Expand Up @@ -28,6 +29,7 @@ $ts-row-hover: rgba(color(utility, xlight), .5);

// <div> inner container for overflow control
&__container {
@include visible-scrollbars;
max-height: 100%;
overflow: auto;
}
Expand Down

0 comments on commit 4bbe00e

Please sign in to comment.