Skip to content

Commit

Permalink
Added CSS property that will hide native scrollbar on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-andrusciac-lgp committed Apr 2, 2024
1 parent a3bb5a4 commit 64d48b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/ui/Scroller/Scroller.module.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// Scroller.module.less
//
.scroller {
/* hide native scrollbar */
scrollbar-width: none;

will-change: transform;

/* hide native scrollbar */
/* hide native scrollbar - to be removed after chrome version 121 */
&::-webkit-scrollbar {
display: none;
}
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/Scroller/UiScroller.module.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// UiScroller.module.less
//
.scroller {
/* hide native scrollbar */
scrollbar-width: none;

will-change: transform;

/* hide native scrollbar */
/* hide native scrollbar - to be removed after chrome version 121 */
&::-webkit-scrollbar {
display: none;
}
Expand Down

0 comments on commit 64d48b4

Please sign in to comment.