Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VSwitch): fix transition in RTL #19495

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading