When attempting to change the default color of ion range-slider (available at: https://github.com/IonDen/ion.rangeSlider) from red (default) to blue using the following code:
.irs-slider.single {
background: blue;
}
The slider shape changes from a thin line to a square as shown below:
https://i.sstatic.net/PSeMR.png
(initially it appears as a thin red line: https://i.sstatic.net/d7Glo.png)
Could anyone provide guidance on what may be causing this issue?
DEMO
https://jsfiddle.net/chapkovski/xpvt214o/995048/
$(".js-range-slider").ionRangeSlider({
type: "single",
min: 0,
max: 1000,
from: 200,
to: 500,
grid: true
});
.irs-slider.single {
background: blue;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.2.0/js/ion.rangeSlider.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.2.0/css/ion.rangeSlider.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.2.0/css/ion.rangeSlider.skinFlat.css">
<input type="text" class="js-range-slider" name="my_range" value="" />