[feature] Styles to accept linear gradients. #149
-
Describe the feature Explain it's value / reasoning Additional context :root { But this does: :root { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hi @learyjk But good news is that you can still add gradients to sliders; <RangeSlider id="mySlider" range /> #mySlider .rangeBar {
background: linear-gradient(90deg, var(--color1), var(--color2));
} There's a somewhat extra example in the docs; https://simeydotme.github.io/svelte-range-slider-pips/en/recipes/price-range/ ... but I think it's a good idea for me to put 'gradients' as a topic under the styling section of the docs to help anyone like yourself :) Cheers! |
Beta Was this translation helpful? Give feedback.
hi @learyjk
I'm not sure how I feel about putting a whole gradient into a variable, feels a little off.
But good news is that you can still add gradients to sliders;
There's a somewhat extra example in the docs; https://simeydotme.github.io/svelte-range-slider-pips/en/recipes/price-range/ ...
but I think it's a good idea for me to put 'gradients' as a topic under the styling section of the docs to help anyone like yourself :)
Cheers!