Skip to content

Commit

Permalink
disabled select should be grayed out. fixes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
oyejorge committed May 15, 2021
1 parent acc71f1 commit c9e436e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/scss/_items.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
background-color: $select-color-input-full;
}

&.disabled, &.disabled * {
&.disabled,
&.disabled * {
cursor: default !important;
}

Expand Down Expand Up @@ -119,7 +120,7 @@
}
}

.#{$select-ns}-input.disabled {
&.disabled {
opacity: $select-opacity-disabled;
background-color: $select-color-disabled;
}
Expand Down
2 changes: 1 addition & 1 deletion src/scss/tom-select.bootstrap4.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $select-color-input: $input-bg !default;
$select-color-input-full: $input-bg !default;
$select-color-input-error: map-get($state-invalid,'color') !default;
$select-color-input-error-focus: darken($select-color-input-error, 10%) !default;
$select-color-disabled: $input-bg !default;
$select-color-disabled: $input-disabled-bg !default;
$select-color-item: #efefef !default;
$select-color-item-border: $border-color !default;
$select-color-item-active: $component-active-bg !default;
Expand Down
2 changes: 1 addition & 1 deletion src/scss/tom-select.bootstrap5.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $select-color-input-error: map-get($state-invalid,'color') !default;


$select-color-input-error-focus: darken($select-color-input-error, 10%) !default;
$select-color-disabled: $input-bg !default;
$select-color-disabled: $input-disabled-bg !default;
$select-color-item: #efefef !default;
$select-color-item-border: $border-color !default;
$select-color-item-active: $component-active-bg !default;
Expand Down

0 comments on commit c9e436e

Please sign in to comment.