question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add scrollbar utility

See original GitHub issue

I’d suggest adding scrollbar utilities.

Firefox supports scrollbar-color and scrollbar-width properties since v64. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scrollbars

Webkit offers even more customization. https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f5f5f5;
    scroll-behavior: smooth;
}
.scrollbar-thin::-webkit-scrollbar{
    width: 6px;
    height: 6px;
    background-color: #f5f5f5;
}
.scrollbar-thin::-webkit-scrollbar-thumb{
    border-radius: 10px;
    background-color: #c1c1c1;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: #9d9d9d;
}

I hope this utility would make a scrollable sidebar and modal a little concise.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ffooddcommented, Aug 18, 2020

There’s almost no browser support in our targetted browsers in v5:

  1. Firefox implements CSS WG standardized properties since 64, but we currently support above 60;
  2. WebKit & Blink browsers support non-standards pesudo-elements, the spec going to properties and not pseudo-elements…
  3. Edge Legacy has no support at all;
  4. all those implementations are buggy: Firefox does not support some values, iOS Safari can not make it work in WebView, etc.

Those properties clearly don’t meet our requirement to be added as utilities in v5, as of now. I’ll keep this open for further discussions–and keep an eye on this for v6?

1reaction
mdocommented, Sep 27, 2020

Closing for now given this is maybe something we’d do in v6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Proposal]: Add custom scrollbar utilities #1640 - GitHub
I just wanted to suggest unified scrollbar style classes. I noticed the docs use webkit CSS selectors for their scrollbars that appear in...
Read more >
tailwind-scrollbar - npm
This plugin is capable of adding utilties for creating rounded scrollbars by referencing your configured border radius settings. However, as they are only ......
Read more >
Python - Tkinter Scrollbar - Tutorialspoint
This widget provides a slide controller that is used to implement vertical scrolled widgets, such as Listbox, Text and Canvas. Note that you...
Read more >
Scroll bar map mode and bar mode - Visual Studio (Windows)
Open the Scroll Bars options page by choosing Tools > Options > Text Editor > All Languages > Scroll Bars. Select Show Annotations...
Read more >
How to Create a Scroll Bar in Excel - Step by Step Tutorial
This will insert a Scroll Bar in the excel worksheet. Right-click on the Scroll Bar and click on 'Format Control'. This will open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found