Skip to content

Commit

Permalink
feat: change disabled state color for Checkbox, Radio and Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Burobin committed Jul 12, 2024
1 parent 7e4dd23 commit 858fcde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
7 changes: 2 additions & 5 deletions src/components/Checkbox/Checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,8 @@ $block: '.#{variables.$ns}checkbox';

&#{$block}_checked,
&#{$block}_indeterminate {
#{$block}__indicator {
&::before {
background-color: var(--g-color-base-brand);
opacity: 0.5;
}
#{$block}__icon {
color: var(--g-color-text-hint);
}
}
}
Expand Down
7 changes: 2 additions & 5 deletions src/components/Radio/Radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,8 @@ $discMarginLSize: 6px;
}

&#{$block}_checked {
#{$block}__indicator {
&::before {
background-color: var(--g-color-base-brand);
opacity: 0.5;
}
#{$block}__disc::before {
background-color: var(--g-color-text-hint);
}
}
}
Expand Down
7 changes: 0 additions & 7 deletions src/components/Switch/Switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,5 @@ $block: '.#{variables.$ns}switch';
#{$block}__indicator::before {
background-color: var(--g-color-base-generic-accent-disabled);
}

&#{$block}_checked {
#{$block}__indicator::before {
background-color: var(--g-color-base-brand);
opacity: 0.5;
}
}
}
}

0 comments on commit 858fcde

Please sign in to comment.