leongersen / noUiSlider

noUiSlider is a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support. It is fully GPU animated: no reflows, so it is fast; even on older devices. It also fits wonderfully in responsive designs and has no dependencies.
https://refreshless.com/nouislider/
MIT License
5.67k stars 660 forks source link

[Request] Convert px to rem #1181

Open coudrak opened 2 years ago

coudrak commented 2 years ago

I think it would be good to update the less files to replace all the css px with rem values. Most of modern projects switched to rem, like Boostrap.

leongersen commented 2 years ago

Thanks for your suggestion. What advantage would you see in making this migration?

Related to #1167.

coudrak commented 2 years ago

For example, in my case, I "zoom out" my page by 75% on mobile screens less than 360px wide, in this way:

:root {
   font-size: 75%;
}

I use Bootstrap, so everything in my page decreases, except the slider because it is in px.

leongersen commented 2 years ago

Right, that makes sense. Given that is would be a tricky breaking change, in particular for restyled sliders, it would be good to pick this up together with the issue linked above.