Question T8407
Visible to All Users

Change the default color for checked check-box using bootstrap theme

created 4 years ago

Hi guys,

I'm using the bootstrap theme in my survey. I've managed to fine tune almost everything with CSS code in regards to color, except the color of the checked check-box (clicked on it), which by default is blue.
I've tried all sorts of solutions found on stackoverflow.com (like this and others), but I just can't seems to get input[type="checkbox"] to change the default checked color.
So, is there a way to do this?

Thank you in advance.

Best regards,
Alex.

Answers approved by surveyjs Support

created 4 years ago (modified 4 years ago)

Hello,

it seems that bootstrap doesn't have any styles for checkboxes. It just uses the default browser styles. But you could customize it by yourself. Here is the additional info: https://stackoverflow.com/questions/44279398/customize-bootstrap-checkboxes

Thank you,
Dmitry
SurveyJS Team

    Comments (1)

      Hi Dmitry,

      Thank you for the additional info that you've sent.
      I've managed to change the color with the following CSS code: input[type=checkbox]{accent-color:#fff;}.

      You can make this post public, maybe there are others looking for this.

      Thank you.

      Best regards,
      Alex.