Skip to content

Commit

Permalink
fix(switch): Set track border to be transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-chen committed Dec 11, 2019
1 parent 50f110a commit a2c9b58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/mdc-switch/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
&.mdc-switch--checked .mdc-switch__track {
@include mdc-feature-targets($feat-color) {
@include mdc-theme-prop(background-color, $color);
@include mdc-theme-prop(border-color, $color);
}
}
}
Expand Down Expand Up @@ -174,7 +173,6 @@
&:not(.mdc-switch--checked) .mdc-switch__track {
@include mdc-feature-targets($feat-color) {
@include mdc-theme-prop(background-color, $color);
@include mdc-theme-prop(border-color, $color);
}
}
}
Expand Down Expand Up @@ -272,6 +270,7 @@
@mixin mdc-switch__track_($query: mdc-feature-all()) {
$feat-animation: mdc-feature-create-target($query, animation);
$feat-structure: mdc-feature-create-target($query, structure);
$feat-color: mdc-feature-create-target($query, color);

@include mdc-feature-targets($feat-structure) {
box-sizing: border-box;
Expand All @@ -288,6 +287,10 @@
mdc-switch-transition(background-color),
mdc-switch-transition(border-color);
}

@include mdc-feature-targets($feat-color) {
@include mdc-theme-prop(border-color, transparent);
}
}

@mixin mdc-switch__thumb-underlay_($query: mdc-feature-all()) {
Expand Down

0 comments on commit a2c9b58

Please sign in to comment.