[Vuejs]-How to change v-switch color when in toggle-off state

0👍

try the following:

.v-input–switch:not(.v-input–switch–flat):not(.v-input–switch–inset) .v-input–switch__thumb {
color: red
}

.theme–light.v-input–switch .v-input–switch__track {
color: red
}

0👍

override styles globally:

.theme--light.v-input--switch .v-input--switch__track {
  color: green !important;
}

.theme--light.v-input--switch.v-input--is-disabled:not(.v-input--is-dirty) .v-input--switch__track {
  color: green !important;
}

Leave a comment