Welcome to the LimeSurvey Community Forum

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

Slider with two values

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233429 by Joffm
Replied by Joffm on topic Slider with two values
To be more precise:
It is not always blue, but in "fruity" it is the color of the selected theme vatiation
The selected colors were
low: #8A2BE2 = BlueViolet
middle: #A52A2A = Brown
high: #BDB76B = DarkKhaki

Here "sea green"
 
"sunset orange"
 

But in "vanilla" you see all three selected colors
 

Also it is possible to move upper marker to the left from lower marker.

What do you mean? Some kind of reverse scale?

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233432 by tpartner
Replied by tpartner on topic Slider with two values

Also it is possible to move upper marker to the left from lower marker. I'm not sure if this is a bug or feature.

This is the expected behaviour. Check your data.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Jmantysalo

Please Log in to join the conversation.

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 5 months ago #233435 by Jmantysalo
Replied by Jmantysalo on topic Slider with two values

But in "vanilla" you see all three selected colors
Ah, OK. So I guess there is some workaround having the magic string !important for Fuity theme?

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233449 by tpartner
Replied by tpartner on topic Slider with two values

To be more precise:
It is not always blue, but in "fruity" it is the color of the selected theme vatiation...
I cannot reproduce the problem. Here is what I see with different themes/variations in version 5.4.4.

Vanilla:
 

Fruity Sea Green:
 

Fruity Sunset Orange:
 

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.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233452 by Joffm
Replied by Joffm on topic Slider with two values
Hm, strange.
I use 5.4.2. and the date of the last update is 28/6/2021 (config.xml)
"purple tentacle" and "black pearl"




Do we miss something?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233468 by tpartner
Replied by tpartner on topic Slider with two values
Can you please attach that sample survey?

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.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 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:26 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.

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 5 months ago - 1 year 5 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: 1 year 5 months ago by Jmantysalo.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 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.

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 5 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.

Lime-years ahead

Online-surveys for every purse and purpose