Skip to content

Commit

Permalink
fix(icon-switch): hide divider beside selected icon
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsperrine committed Sep 20, 2021
1 parent 9527c6e commit 3073310
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react/src/components/IconSwitch/_icon-switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ $icon-switch-size-large: $spacing-09;
color: $disabled-02;
}

// hide divider beside a selected icon
&:not(.#{$iot-prefix}--icon-switch--light) + .#{$iot-prefix}--icon-switch {
.#{$iot-prefix}--icon-switch__divider:after {
background-color: transparent;
}
}

&.#{$iot-prefix}--icon-switch--light {
background-color: transparent;
color: $icon-02;
Expand Down

0 comments on commit 3073310

Please sign in to comment.