Skip to content

Commit

Permalink
fix(VSwitch): hide default thumb when true/false-icon is present
Browse files Browse the repository at this point in the history
fixes #15318
  • Loading branch information
KaelWD committed Jul 5, 2022
1 parent 20cb0b3 commit 8e8715e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vuetify/src/components/VSwitch/VSwitch.sass
Expand Up @@ -46,6 +46,12 @@
.v-switch--inset &
@include tools.elevation(0)

.v-switch:not(.v-switch--loading) .v-icon ~ &
display: none

.v-switch--loading .v-selection-control__input > .v-icon
display: none

.v-switch
$switch-thumb-transform: $switch-track-width * .5 - $switch-thumb-width * .5 + $switch-thumb-offset

Expand Down

0 comments on commit 8e8715e

Please sign in to comment.