Skip to content

Commit

Permalink
fix(VCheckbox/VSwitch): incorrect default flex inherited from VInput
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Feb 3, 2024
1 parent d8c2943 commit de501c3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vuetify/src/components/VCheckbox/VCheckbox.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
@use './variables' as *

.v-checkbox
&.v-input
flex: $checkbox-flex

.v-selection-control
min-height: var(--v-input-control-height)
3 changes: 3 additions & 0 deletions packages/vuetify/src/components/VCheckbox/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
@use '../../styles/settings';

$checkbox-flex: 0 1 auto !default;
$checkbox-disabled-color: rgba(var(--v-theme-on-surface), var(--v-disabled-opacity)) !default;
$checkbox-error-color: rgb(var(--v-theme-error)) !default;
3 changes: 3 additions & 0 deletions packages/vuetify/src/components/VSwitch/VSwitch.sass
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
.v-switch
$switch-thumb-transform: $switch-track-width * .5 - $switch-thumb-width * .5 + $switch-thumb-offset

&.v-input
flex: $switch-flex

.v-selection-control
min-height: var(--v-input-control-height)

Expand Down
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VSwitch/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@use '../../styles/settings';

// VSwitch
$switch-flex: 0 1 auto !default;
$switch-control-input-transition: .2s transform settings.$standard-easing !default;
$switch-error-background-color: rgb(var(--v-theme-error)) !default;
$switch-error-color: rgb(var(--v-theme-on-error)) !default;
Expand Down

0 comments on commit de501c3

Please sign in to comment.