I want to customize scroll bar for the whole application. Which means I want to change the default browser look on scroll bar. In my styles.scss file I have tried but saw no difference in scroll bar:
::-webkit-scrollbar {
//changes
}
html::-webkit-scrollbar {
//changes
}
body::-webkit-scrollbar {
//changes
}
::ng-deep ::-webkit-scrollbar {
//changes
}
app.component.html:
<app-shell>
<main>
<router-outlet></router-outlet>
</main>
</app-shell>
shell.component.html:
<nav>
<!-- navbar here -->
</nav>
<main>
<ng-content></ng-content>
</main>
Is there something that I misunderstood about scrollbars? How to change the browser default scroll bar around the application?
UPDATE: Even if there is nothing to scroll on the page, there is white scrollbar on the right side.