Skip to content

How to set Colours on specific Pips / Labels #61

Discussion options

You must be logged in to vote

--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-

.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(

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@simeydotme
Comment options

Answer selected by simeydotme
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed good first issue Good for newcomers question Further information is requested Recipe Suggestion This could be good to add to Documentation site as a Recipe
2 participants
Converted from issue

This discussion was converted from issue #60 on February 16, 2022 12:55.