tailwind-scrollbar icon indicating copy to clipboard operation
tailwind-scrollbar copied to clipboard

Suggestion: scrollbar-thumb-border

Open fabiogiolito opened this issue 2 years ago • 0 comments

scrollbar-thumb-border-*

Eg: scrollbar-thumb-border-4 Adds a 4px border to the scrollbar-thumb. By default same color as track background.

::scrollbar-track {
  background: var(--scrollbar-track-color);
}
::scrollbar-thumb {
  border: 
    var(--scrollbar-thumb-border-width, 0px) solid 
    var(--scrollbar-thumb-border-color, var(--scrollbar-track-color, initial));
}

Could also add support for changing the border color just for the sake of completeness. Eg: scrollbar-thumb-border-red-500

fabiogiolito avatar Aug 12 '24 15:08 fabiogiolito