Skip to content

Custom Scrollbar CSS #34

Locked Answered by shlomiassaf
andy-bond asked this question in Q&A
Discussion options

You must be logged in to vote

This is quite easy to achieve...

The scrollbar container inside the grid has the css class pbl-ngrid-scroll-container

Let's define the class with-custom-scrollbar that if set on the grid's element will trigger a custom scrollbar style:

pbl-ngrid.with-custom-scrollbar {
  .pbl-ngrid-scroll-container::-webkit-scrollbar-track {
    background-color: rgba(128, 128, 128, .5);
  }

  .pbl-ngrid-scroll-container::-webkit-scrollbar {
    width: 6px;
  }

  .pbl-ngrid-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ff4081;
  }

  .pbl-ngrid-scroll-container::-webkit-scrollbar-corner {
    background-color: #424242;
  }

  .pbl-ngrid-scroll-container::-webkit-resizer {
    backgr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shlomiassaf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #34 on December 21, 2020 23:48.