Skip to content

Commit

Permalink
fix(icon-switch): design adjustments from pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsperrine committed Sep 15, 2021
1 parent 7518289 commit 487548c
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions packages/react/src/components/IconSwitch/_icon-switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ $icon-switch-size-large: $spacing-09;
}
}

&:hover:not(.#{$iot-prefix}--icon-switch--light) {
.#{$iot-prefix}--icon-switch__divider:after {
display: none;
}
}

&:first-child {
border-top-left-radius: $spacing-02;
border-bottom-left-radius: $spacing-02;
border-left: 1px solid $ui-05;

&:focus {
border-radius: 1px 0 0 1px;
border-radius: $spacing-02 0 0 $spacing-02;
}

.#{$iot-prefix}--icon-switch__divider:after {
Expand All @@ -39,7 +45,7 @@ $icon-switch-size-large: $spacing-09;
border-right: 1px solid $ui-05;

&:focus {
border-radius: 0 1px 1px 0;
border-radius: 0 $spacing-02 $spacing-02 0;
}
}

Expand Down Expand Up @@ -185,6 +191,12 @@ $icon-switch-size-large: $spacing-09;
border-right: 1px solid $ui-05;
}

&:focus {
.#{$iot-prefix}--icon-switch__divider {
border-color: $focus;
}
}

&:disabled,
&:disabled:hover {
background-color: $disabled-01;
Expand Down Expand Up @@ -240,7 +252,7 @@ html[dir='rtl'] {
border-left: 0;

&:focus {
border-radius: 0 1px 1px 0;
border-radius: 0 $spacing-02 $spacing-02 0;
}

&:last-child {
Expand All @@ -255,7 +267,7 @@ html[dir='rtl'] {
border-left: 0;

&:focus {
border-radius: 1px 0 0 1px;
border-radius: $spacing-02 0 0 $spacing-02;
}
}

Expand Down

0 comments on commit 487548c

Please sign in to comment.