Use em to detach slider from root font-size

This commit is contained in:
Jorik Schellekens 2020-04-23 10:58:00 +01:00
parent 8f0d81e770
commit a16fe09d42
3 changed files with 13 additions and 12 deletions

View file

@ -89,7 +89,7 @@ export default class Slider extends React.Component<IProps> {
{ this.props.disabled ?
null :
<div className="mx_Slider_selection">
<div className="mx_Slider_selectionDot" style={{left: "calc(-0.55rem + " + offset + "%)"}} />
<div className="mx_Slider_selectionDot" style={{left: "calc(-0.55em + " + offset + "%)"}} />
<hr style={{width: offset + "%"}} />
</div>
}