In the mixin of the range component, it is written that you need to show the div.range_gradient if type is alpha. Only you can simplify everything. Each range class has an .is-{type}. Plus, .is-a already had styles. I removed the div.range_gradient element and just add a pseudo-element exclusively from .is-a. After I changed the logic of the mixin and make a canvas render when type !== alpha. I think it's easier and more logical
What's new?
In the mixin of the range component, it is written that you need to show the
div.range_gradient
if type is alpha. Only you can simplify everything. Each range class has an.is-{type}
. Plus,.is-a
already had styles. I removed thediv.range_gradient
element and just add a pseudo-element exclusively from.is-a
. After I changed the logic of the mixin and make a canvas render whentype !== alpha
. I think it's easier and more logical