How to set Colours on specific Pips / Labels #61
-
Describe the bug When the current value of the slider matches exactly one of the pip, the To Reproduce Steps to reproduce the behavior:
Expected behavior All pips in the range should be in orange, including the one matching exactly the current value. Screenshots |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
hi, @gbcreation this is not considered a bug, this is the correct styling/behaviour as I intended. You may set the css color values for
|
Beta Was this translation helpful? Give feedback.
-
Hi @simeydotme thank you for your quick answer. |
Beta Was this translation helpful? Give feedback.
-
:) I should have documented all of these, but essentially u can inspect the elements with devtools and see all the css variables; all the variables have an override ( .rangeSlider {
--pip: var(--range-pip, lightslategray);
--pip-text: var(--range-pip-text, var(--pip));
--pip-active: var(--range-pip-active, darkslategrey);
--pip-active-text: var(--range-pip-active-text, var(--pip-active));
--pip-hover: var(--range-pip-hover, darkslategrey);
--pip-hover-text: var(--range-pip-hover-text, var(--pip-hover));
--pip-in-range: var(--range-pip-in-range, var(--pip-active));
--pip-in-range-text: var(--range-pip-in-range-text, var(--pip-active-text));
}
.rangeSlider {
--slider: var(--range-slider, #d7dada);
--handle-inactive: var(--range-handle-inactive, #99a2a2);
--handle: var(--range-handle, #838de7);
--handle-focus: var(--range-handle-focus, #4a40d4);
--handle-border: var(--range-handle-border, var(--handle));
--range-inactive: var(--range-range-inactive, var(--handle-inactive));
--range: var(--range-range, var(--handle-focus));
--float-inactive: var(--range-float-inactive, var(--handle-inactive));
--float: var(--range-float, var(--handle-focus));
--float-text: var(--range-float-text, white);
} If you want to contribute by adding some documentation for that to the |
Beta Was this translation helpful? Give feedback.
-
Nice! :) Thank you for the explanations 👍 |
Beta Was this translation helpful? Give feedback.
--range-pip-active: orange;
:)
I should have documented all of these, but essentially u can inspect the elements with devtools and see all the css variables;
all the variables have an override (
--range-xxxxxxxx
) value which is not set, so to override the default colors, just set those properties that begin with--range-