Styling the thumb not working
See original GitHub issueUsing 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:
- Created 7 years ago
- Reactions:7
- Comments:16 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mruano29 that might be a work around but you can’t really ask people to do that when using your app :p
I had the same issue using OSX, configure “use the scrollbars: always” on system preferences => general. It worked for me.