I want to change the Thumb color for my slider, but I need to select the thumb with '.topcoat-range-input::-webkit-slider-thumb'. This selector is not working with css, I think because it includes a vendor prefix. Is there a possibility to fix that issue? I want to pick the color dynamically, so I can't simply append a class.
$('.button').on('click', function (e) {
$('.topcoat-range-input::-webkit-slider-thumb').css('background', 'rgba(255, 208, 255, 0.75)');
});
http://jsfiddle.net/qcn6tmpz/3/
A possible solution would be this one, but i hoped on simple way to do this:
$('.button').on('click', function (e) {
$("<style type='text/css'>.topcoat-range-input::-webkit-slider-thumb{background:rgba(255, 208, 255, 0.75)}</style>").appendTo($("head"));
});