Skip to content

Commit

Permalink
fix(toggle): update disabled toggle tokens (#8514)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
emyarod and kodiakhq[bot] authored Apr 28, 2021
1 parent 5a84556 commit dea6b68
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions packages/components/src/components/toggle/_toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,11 @@
cursor: not-allowed;

&::before {
background-color: $layer-disabled;
background-color: $button-disabled;
}

&::after {
background-color: $icon-disabled;
background-color: $icon-on-color-disabled;
}

&::before,
Expand All @@ -425,21 +425,6 @@
box-shadow: none;
}

// disabled toggle in data table #7351
.#{$prefix}--data-table
.#{$prefix}--toggle-input:disabled
+ .#{$prefix}--toggle-input__label
> .#{$prefix}--toggle__switch::before {
background-color: $button-disabled;
}

.#{$prefix}--data-table
.#{$prefix}--toggle-input:disabled
+ .#{$prefix}--toggle-input__label
> .#{$prefix}--toggle__switch::after {
background-color: $icon-on-color-disabled;
}

//----------------------------------------------
// Small toggle
// ---------------------------------------------
Expand Down

0 comments on commit dea6b68

Please sign in to comment.