Skip to main content
mneumannAnswer
Mar 24, 2017 8:28 AM UTC

Hi,

the toggle has basically two properties.

I've assigned the "ToggleMe" class to the Toggle Widget to control it's background color and the font color. The style sheet like this:

.ToggleMe {

  color: #2379FF;

  background-color: transparent;

}

For the actual background you can use

.toggle.toggle-assertive input:checked + .track {

    border-color: green;

    background-color: green;

}

Despite it's being a bit too green, it works quite nice.

One controls the actual track color, the other the border around the Widget.

(It will be for ALL Toggle Widgets you're using though)

I hope that helps

Cheers

/Michael

1 reply

mneumannAnswer
Mar 24, 2017 8:28 AM UTC

Hi,

the toggle has basically two properties.

I've assigned the "ToggleMe" class to the Toggle Widget to control it's background color and the font color. The style sheet like this:

.ToggleMe {

  color: #2379FF;

  background-color: transparent;

}

For the actual background you can use

.toggle.toggle-assertive input:checked + .track {

    border-color: green;

    background-color: green;

}

Despite it's being a bit too green, it works quite nice.

One controls the actual track color, the other the border around the Widget.

(It will be for ALL Toggle Widgets you're using though)

I hope that helps

Cheers

/Michael