switch color class broke

weshuiz13 asked 7 months ago

when trying the switch element everything seems fine the switch is nice and good untill i add a switch color class to it

for example

<!-- Switch -->
<divclass="switch mdb-color-switch">
<label>
Off
<inputtype="checkbox"checked="checked">
<spanclass="lever"></span>
On
</label>
</div>

how ever adding this chance nothing happend the color stay's the same no matter what or how


Hi,

have you added a CSS code like on the documentation page: https://mdbootstrap.com/components/bootstrap-switch/#colors ?

Best,

Marta


weshuiz13 answered 6 months ago

a cording to that link i have to apply switch-primairy to chance the theme from purple to the primairy color

but when i try it it does not work

 

if i add a color theme on a button 4 example it works fine

what is going rong?


Hi,

you need to add additional CSS to change switch color as we wrote in our documentation.

Best,

Marta


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No