Skip to content

Commit

Permalink
fix(icon-switch): design updates for RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsperrine committed Sep 14, 2021
1 parent 6a4ff06 commit 1586401
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/react/src/components/IconSwitch/_icon-switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ html[dir='rtl'] {
&:first-child {
border-top-right-radius: $spacing-02;
border-bottom-right-radius: $spacing-02;
border-right: 1px solid;
border-right: 1px solid $ui-05;
border-left: 0;

&:focus {
Expand Down Expand Up @@ -290,15 +290,19 @@ html[dir='rtl'] {
&--selected {
border-color: $ui-05;

&:first-child {
.#{$iot-prefix}--icon-switch__divider {
border-right: 0;
&.#{$iot-prefix}--icon-switch--light {
&:first-child {
.#{$iot-prefix}--icon-switch__divider {
border-right: 0;
border-left: 1px solid $ui-05;
}
}
}

&:last-child {
.#{$iot-prefix}--icon-switch__divider {
border-left: 0;
&:last-child {
.#{$iot-prefix}--icon-switch__divider {
border-left: 0;
border-right: 1px solid $ui-05;
}
}
}
}
Expand Down

0 comments on commit 1586401

Please sign in to comment.