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.

Styling the thumb not working

See original GitHub issue

Using v4.0.0; React v15.1.0; Redux v3.5.2 So I’ve been trying to add my own styling to the thumb and track but I can’t seem to get it to work. I figured out that you need to add the complete styling (I did see this is fixed in 4.0.1) but when I try to set a different color to the thumb it doesn’t style the actual thumb but just places a ‘new’ static thumb in that color and the actual thumb that is moving isn’t colored, what am I doing wrong?

Also the autoHide={false} doesn’t work and it still hides when I’m not scrolling.

< Scrollbars
  autoHide={false}
  autoHeight={true}
  autoHeightMin={this.scrollBarHeight()}
  autoHeightMax={this.scrollBarHeight()}
  renderThumbVertical={props => < div {...props} className="thumb-vertical"/>}
  renderTrackVertical={props => < div {...props} className="track-vertical"/>}>
       // content
< /Scrollbars >
.thumb-vertical {
  position: relative;
  display: block;
  width: 100px;
  height: 100px;
  cursor: pointer;
  border-radius: inherit;
  background-color: #d9534f;
}

.track-vertical {
  position: absolute;
  width: 6px;
  display: block!important;
  right: 2px;
  bottom: 2px;
  top: 2px;
  border-radius: 3px;
}

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
e11encommented, Nov 17, 2016

@mruano29 that might be a work around but you can’t really ask people to do that when using your app :p

3reactions
mruano29commented, Nov 16, 2016

I had the same issue using OSX, configure “use the scrollbars: always” on system preferences => general. It worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble styling range input thumb - Stack Overflow
You'll notice that if you comment out the background , height and width styles the thumb does dissapear. So something is working. But...
Read more >
When Creating a Custom Style for the Middle Thumb It Is not ...
Solution. The most likely cause for this issue is that you're using the StyleManager theming approach. In this case to change the style...
Read more >
[Solved] WPF Styling Sliders Thumb - CodeProject
Here is my current thumbstyle. The problem is that I cannot bind my textbox Text property to sliders Value property (slider style x:key...
Read more >
::-moz-range-thumb - CSS: Cascading Style Sheets | MDN
Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities...
Read more >
How to Style Input Type Range in Chrome, Firefox, and IE
You'll need to tell webkit you want nothing to do with their default styles by including a -webkit-appearance: none; on both the input...
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