Skip to content

Commit

Permalink
fix(VSwitch): label when using direction vertical (#19504)
Browse files Browse the repository at this point in the history
fixes #18952

Co-authored-by: John Leider <john@vuetifyjs.com>
  • Loading branch information
De-Hann and johnleider authored Mar 29, 2024
1 parent 07cfde8 commit 6748fd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/vuetify/src/components/VSwitch/VSwitch.sass
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,10 @@
&.v-switch--inset
.v-selection-control__wrapper
width: auto

&.v-input--vertical
.v-label
min-width: max-content

.v-selection-control__wrapper
transform: $switch-thumb-vertical-transform
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VSwitch/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $switch-thumb-width: 20px !default;
$switch-thumb-offset: 2px !default;
$switch-thumb-radius: 50% !default;
$switch-thumb-transition: .15s .05s transform settings.$decelerated-easing, .2s color settings.$standard-easing, .2s background-color settings.$standard-easing !default;
$switch-thumb-vertical-transform: rotate(-90deg) !default;

$switch-track-background: rgb(var(--v-theme-surface-variant)) !default;
$switch-track-radius: 9999px !default;
Expand Down

0 comments on commit 6748fd7

Please sign in to comment.