Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider not showing intermediate response options #253

Open
danielmlow opened this issue Sep 27, 2021 · 14 comments
Open

Slider not showing intermediate response options #253

danielmlow opened this issue Sep 27, 2021 · 14 comments
Assignees
Labels
enhancement New feature or request

Comments

@danielmlow
Copy link

There is an activity where all items were set to radio. The slider looks much nicer.

However, when I try setting one of the items to slider, only the first and last response options appear.

https://github.com/danielmlow/reproschema-library/blob/master/activities/SRIS-SF/items/SRIS-SF_1

image

You can see the value constraints have names for all levels:
https://github.com/danielmlow/reproschema-library/blob/master/activities/SRIS-SF/SRIS-SFvalueConstraints

@sanuann sanuann self-assigned this Sep 29, 2021
@sanuann sanuann added the enhancement New feature or request label Sep 30, 2021
@sanuann
Copy link
Collaborator

sanuann commented Sep 30, 2021

this is intentionally done this way. the labels for each of the points could be a long(ish) string and would perhaps look clumsy if all are mentioned by default.
@satra should all the labels be present by default? or dependent on anything?

@satra
Copy link
Contributor

satra commented Sep 30, 2021

you could make it a ui parameter potentially. but i agree in most cases sticking all the labels will make the cleanliness go away.

@danielmlow
Copy link
Author

Yeah, let's make a ui parameter. Can't people add <br> to the labels so it appears on two rows?

@sanuann
Copy link
Collaborator

sanuann commented Sep 30, 2021

how about placing the labels in the tooltip?
(2 rows of labels - name and values, wouldn't look good anyways i think)

@danielmlow
Copy link
Author

What's a tooltip?

Would
work? Then I can place the labels on 2 rows so they don't overlap horizontly.

@satra
Copy link
Contributor

satra commented Sep 30, 2021

please do consider a phone screen when testing. a number of options that may look good on a computer don't work well on a phone.

@sanuann
Copy link
Collaborator

sanuann commented Sep 30, 2021

please do consider a phone screen when testing. a number of options that may look good on a computer don't work well on a phone.

good point. thanks for that reminder.

@sanuann
Copy link
Collaborator

sanuann commented Sep 30, 2021

What's a tooltip?

Would work? Then I can place the labels on 2 rows so they don't overlap horizontly.

i'll send you a screenshot in some time

@sanuann
Copy link
Collaborator

sanuann commented Sep 30, 2021

also, I just had a thought - if you want to show all the labels then wouldn't it be better to show the question as a radio item?
How does one decide when to have a radio vs slider?

@danielmlow
Copy link
Author

Yes, we're currently using radio option. But multiple people said slider looks a lot nicer and than switching between slider and radio can be confusing. If we can put labels on two or more rows with
than it should work.

Placing on the tooltip could work, but the labels may still be long and overlap without

@satra
Copy link
Contributor

satra commented Sep 30, 2021

@danielmlow - are they doing it on a phone? tooltips are a little difficult and require people to actually hover. so that may not be a useful tool in this context. given the different viewports of devices, if one wants labels on every point, i think the radio button may be the best option.

@sanuann
Copy link
Collaborator

sanuann commented Sep 30, 2021

@danielmlow - are they doing it on a phone? tooltips are a little difficult and require people to actually hover. so that may not be a useful tool in this context. given the different viewports of devices, if one wants labels on every point, I think the radio button may be the best option.

I second this.

@sanuann
Copy link
Collaborator

sanuann commented Sep 30, 2021

or maybe we can have another label at the midpoint.

@danielmlow
Copy link
Author

That's fair, I guess we'll do radio for now.

Sanu, some questionnaires have labels for all responses, so we can't choose what labels to use, we need to use them all to match the questionnaire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants