-
Notifications
You must be signed in to change notification settings - Fork 44
Use custom CSS scrollbars for consistent look across OSes #313
Comments
|
As a reference, here's a demo of scrollbar interactions on macos. I doubt we can do exactly that with CSS only, but let's try to follow this minimalistic approach! Screen.Recording.2022-08-10.at.09.50.09.mov |
@mvaivre to be sure, you saw #324 (comment), and we want something that is much closer to the video demo, right? |
I had not see it nope! It's a very good start, thanks. Ideally yes, we'd like it to be closer to what's shown above:
And no track (as you made it). |
Adding padding and having nice fade in/out is going to make this way less trivial - Slack for example creates a scrollbar component and uses this. I'll do the same then if we want these... At least we'll have very configurable scrollbars then 😆 Edit: |
https://github.com/xobotyi/react-scrollbars-custom is working perfectly, I just have to adjust a few other places in the application where scrollbars appear and it's all good |
The appearance of the scrollbars on MacOS and most Linux distros is 🤢, especially with the dark theme on.
Good news: we know for sure that we're running on webkit! Thus, we don't have to use JS to create pseudo-scrollbars, we can leverage this: https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar
The text was updated successfully, but these errors were encountered: