Skip to content

Commit

Permalink
fix(VSwitch): transition in RTL (#19495)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluxiv authored Apr 23, 2024
1 parent 97cc161 commit d11824f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/vuetify/src/components/VSwitch/VSwitch.sass
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,21 @@
.v-selection-control__input
border-radius: 50%
transition: $switch-control-input-transition
transform: translateX(-$switch-thumb-transform)
+tools.ltr()
transform: translateX(-$switch-thumb-transform)
+tools.rtl()
transform: translateX($switch-thumb-transform)
position: absolute

.v-icon
position: absolute

.v-selection-control--dirty
.v-selection-control__input
transform: translateX($switch-thumb-transform)
+tools.ltr()
transform: translateX($switch-thumb-transform)
+tools.rtl()
transform: translateX(-$switch-thumb-transform)

&.v-switch--indeterminate
.v-selection-control__input
Expand Down

0 comments on commit d11824f

Please sign in to comment.