I've got a range slider but it doesn't work correctly as well as styles incorrectly in IE. I tried to apply the below described css for IE but it doesn't style as expected.
How to achieve the same styling in IE as in chrome.
Code:
editSubComponent = (
<div className="SettingsTreeValueNode__SliderField">
{node.LowerBound}
<input
type="range"
className="sliderinput"
onInput={this.handleSliderChange.bind(this)}
onMouseUp={this.handleWhenMouseReleased.bind(this)}
/>
{node.UpperBound}
</div>
);
css applied to achieve styling in IE
.sliderinput{
-webkit-appearance: none;
height: 5px;
border-radius: 5px;
background: #c8c8c8;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
margin-top:20px;
min-width: 10%;
}
.sliderinput::-ms-fill-lower, .sliderinput::-ms-fill-upper{
background: transparent;
}
.sliderinput::-ms-track{
background: transparent;
height: 5px;
border-radius: 5px;
outline: none;
margin-top:20px;
min-width: 10%;
}
.sliderinput::-ms-thumb {
width: 15px;
height: 15px;
border-radius: 50%;
background: #00a886;
cursor: pointer;
}
Reproduce the problem on my side, it seems like this issue is the IE browser default behavior.
As a workaround, I suggest you could try to use the InputRange component.
Please refer to the following steps to install the InputRange component:
The sample code as below:
The result as below: