Welcome to the LimeSurvey Community Forum

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

People saying checkbox too small

More
6 years 6 months ago - 6 years 6 months ago #181167 by bulgin
People are telling me they can't start the survey because it's hard for them to find the small checkbox required to be checked to agree to the terms.

Granted - this survey is being conducted at a senior's residence where eyesight isn't the best but it's the population I work with, so would like to accommodate them.

Can the size of the checkbox be altered such that it is a) larger and b) has a color border?

Thanks.



Last edit: 6 years 6 months ago by bulgin. Reason: remove reference to image
The topic has been locked.
More
6 years 6 months ago #181177 by Joffm
Hi,
what about the option to hide this checkbox.

Force the respondents to open the drop-down where there is a big button to accept.



Quick and dirty.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
6 years 6 months ago #181183 by tammo
But the OP (original poster) is right about the checkbox being different from other places where checkboxes are being used. I think it should be generated in the same way as the other checkboxes.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: bulgin
The topic has been locked.
More
6 years 6 months ago #181192 by Joffm
I agree absolutely.
But in the meantime ...

Kind regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
6 years 6 months ago #181194 by tammo
Yes! What do you think. Should the structural issue be addressed as a bug report?

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
6 years 6 months ago #181196 by DenisChenu
Personnaly : i think updating checkbox view is a bad solution … make it clearly inside a button with the label : really beter.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
6 years 6 months ago #181199 by tammo
I agree, but then the checkbox option should be deleted?

If there is the possibility to show a checkbox, I think the checkbox should be shown just as other checkboxes...


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: bulgin
The topic has been locked.
More
6 years 6 months ago #181206 by DenisChenu

tammo wrote: I agree, but then the checkbox option should be deleted?

demo.sondages.me/76475# :)

tammo wrote: If there is the possibility to show a checkbox, I think the checkbox should be shown just as other checkboxes...

Yes +1

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
6 years 6 months ago #181208 by tammo
Well, I do quite like the awesome checkbox, but then all checkboxes should be awesome.

In your survey you use "normal" checkboxes.

Please also look at the way a checked li is rendered (in your example). When I look at it, the most recently checked li is grey, not blue.


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
6 years 6 months ago #181212 by DenisChenu

DenisChenu wrote: …

tammo wrote: If there is the possibility to show a checkbox, I think the checkbox should be shown just as other checkboxes...

Yes +1

;)

When a bug is reported : i can make a pull request ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
6 years 6 months ago #181251 by bulgin
I'm not quiet sure if it's a bug, but it would be nice to accommodate people with vision disabilities, which is how it's impacting my study.

Others may see that differently. Would it help if I call this a "bug" and then make it be an official "bug report"?

It certainly fulfills it's mission to accept the check-mark, but seems to me to be more fo a design function that a bug.
The topic has been locked.
More
6 years 6 months ago #181252 by tammo
Yes, if you make a bug report, there is a chance that DenisChenu will make a pull request for fixing. It will be available in a new release after that action by DenisChenu...


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
6 years 6 months ago #181261 by DenisChenu
PS : about a11y : it's not really related to disability here, since using checkbox from OS can be better than update to another (maybe unreadable) checkbox …

I look at the bug report … updating to get same than checkbox-item are not so easy …

I make it in SkelVanilla , but not in core .

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: bulgin
The topic has been locked.
More
6 years 6 months ago #181272 by tpartner
If you want to emulate the multiple-choice checkboxes (with pseudo-elements) and make it a little more visible...

1) Extend your theme.

2) Copy privacy_modal.twig and privacy_text.twig from /themes/survey/vanilla/views/subviews/privacy/ to /upload/themes/survey/your_theme/views/subviews/privacy/.

3) Modify privacy_modal.twig to something like this:

Code:
<!-- Privacy message -->
<br/>
<div class="row">
    <div class="col-sm-12 checkbox-item datasecurity-accepted-wrapper">
        <input class="{{ aSurveyInfo.class.privacydataseccheckbox }}" type="checkbox" name="datasecurity_accepted" id="datasecurity_accepted" />
        <label for="datasecurity_accepted" class="control-label {{ aSurveyInfo.class.privacydataseccheckboxlabel }}">{{ aSurveyInfo.datasecurity_notice_label }}</label>
    </div>
</div>
<div class="collapse fade" id="data-security-modal-{{aSurveyInfo.sid}}">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h4 class="modal-title">{{gT('Survey data policy')}}</h4>
        </div>
        <div class="panel-body {{ aSurveyInfo.class.privacydatasecmodalbody }}">
            {{ aSurveyInfo.datasecurity_notice }}
        </div>
        <div class="panel-footer">
            <button type="button" class="btn btn-primary" onclick="$('#datasecurity_accepted').prop('checked',true).trigger('change');" data-dismiss="modal">{{gT("Accept")}}</button>
            <button type="button" class="btn btn-default" onclick="$('#data-security-modal-{{aSurveyInfo.sid}}').collapse('hide');">{{gT("Close")}}</button>
        </div>
    </div>
</div>

4) Modify privacy_text.twig to something like this:

Code:
<!-- Privacy message -->
<br/>
<div class="row">
    <div class="limit-text-window {{ aSurveyInfo.class.privacydatasectextbody }}">
        {{ aSurveyInfo.datasecurity_notice }}
    </div>
</div>
<div class="row">
    <div class="col-sm-12 checkbox-item datasecurity-accepted-wrapper">
        <input required class="{{ aSurveyInfo.class.privacydataseccheckbox }}" type="checkbox" name="datasecurity_accepted" id="datasecurity_accepted" />
        <label for="datasecurity_accepted" class="control-label {{ aSurveyInfo.class.privacydataseccheckboxlabel }}">{{ aSurveyInfo.datasecurity_notice_label }}</label>
    </div>
</div>

5) Add something like this to the end of custom.css:

Code:
.datasecurity-accepted-wrapper {
  padding-left: 45px;
    font-size: 18px;
    line-height: 24px;
}
 
.datasecurity-accepted-wrapper.checkbox-item label {
    margin-top: 15px;
    margin-bottom: 5px;
}
 
.datasecurity-accepted-wrapper.checkbox-item label::before {
    width: 24px;
    height: 24px;
    margin-left: -26px;
    border: 1px solid #cccccc;
}
 
.datasecurity-accepted-wrapper.checkbox-item input[type="checkbox"]:checked + label::before {
    border-color: #337ab7;
}
 
.datasecurity-accepted-wrapper.checkbox-item label::after {
  padding: 0;
    width: 22px;
    height: 22px;
    margin-left: -26px;
    color: #FFFFFF;
    font-size: 18px;
    line-height: 22px;
}


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: DenisChenu
The topic has been locked.
More
6 years 6 months ago #181284 by bulgin
Thanks Tony, that looks like a good fix. As always, very appreciative of the excellent advise offered on this forum.

Here is a question that I hope you can answer or someone might answer: I'm always a bit hesitant to play around with themes, mostly because the "installed survey themes" page is very confusing to me. I currently have on that page:

Bootswatch listed at the top as a "core" theme with "vanilla" listed under "extends".

Then a long list of extends_bootswatch as type "user theme" and also listed under Extends with a reference of bootswatch.

And then extends_extends_bootswatch, extends_fruity and extends_vanilla.

All of the aforementioned is enough to scare the daylights out of me because I honestly don't know which them is in use and the use of the repeating theme names only makes things more confusing.

For example, how do I even know which survey theme is actually in use and active?

As well if I click on theme options and then Bootstrap theme there is a drop down menu with yet another long list of themes.

I love the power and flexibility of LimeSurvey. In my view it is unparalleled. But I'm totally lost in this theme park.

Thanks.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose