Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Slider with two values

More
2 years 9 months ago #233472 by Joffm
Replied by Joffm on topic Slider with two values
Of course,
here it is.
 

File Attachment:

File Name: limesurvey...9695.lss
File Size:25.59 KB


Is it possible that this is because in the [variation].css like "seagreen.css" the slider-selection is defined as
.fruity .slider-selection{background-image:linear-gradient(to bottom, #84b39a 0%, #39993f 100%)}
but in the rangeslider.js there is only the "background-color"
$('.slider-selection', thisQuestion).css('background-color', opts.sliderColorM );

You see - with my very limited knowledge - I removed the "background-image" part from the "seagreen.css".
And now it looks as expected.

Normal:
 
With removed "background-image"
 

Might this cause this effect?

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Jmantysalo

Please Log in to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #233473 by Jmantysalo
Replied by Jmantysalo on topic Slider with two values
Ah, that explains! But then I tried adding

.mytest .slider-selection { background-image: none !important; }

to custom.css and it does not seem to help.
Last edit: 2 years 9 months ago by Jmantysalo.

Please Log in to join the conversation.

More
2 years 9 months ago #233474 by tpartner
Replied by tpartner on topic Slider with two values

Is it possible that this is because in the [variation].css like "seagreen.css" the slider-selection is defined as...

Sure, but it's odd that I don't get that rule applied.

Anyway, I have updated rangeSlider.css to remove all background images from the slider track - github.com/tpartner/LimeSurvey-Range-Sli...geSlider.css#L37-L42

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 9 months ago #233504 by Jmantysalo
Replied by Jmantysalo on topic Slider with two values
Supergreat! Now everything works, researcher is happy, the sun shines and the sky is blue! (Well, two last not really, but still, good.)

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose