Skip to content

Commit 1e0a4ad

Browse files
committed
fix(VSwitch): only affect control opacity when disabled
1 parent 0cc43e2 commit 1e0a4ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/vuetify/src/components/VSwitch/VSwitch.sass

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
.v-input--selection-controls__input
4747
width: $switch-width
48+
transition: opacity $primary-transition
4849

4950
.v-input--selection-controls__ripple
5051
top: $switch-ripple-top
@@ -68,8 +69,8 @@
6869
.v-input--selection-controls__ripple
6970
top: $switch-ripple-dense-top
7071

71-
&.v-input--is-dirty
72-
&.v-input--is-disabled
72+
&.v-input--is-dirty.v-input--is-disabled
73+
.v-input--selection-controls__input
7374
opacity: $switch-disabled-opacity
7475

7576
+ltr()

0 commit comments

Comments
 (0)