Skip to content

Commit

Permalink
fix(switch): change all border-radius values to 50% instead of hardco…
Browse files Browse the repository at this point in the history
…ded pixel values (#2255)
  • Loading branch information
Matty Goo committed Feb 15, 2018
1 parent 3413f80 commit 1b2219b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mdc-switch/mdc-switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
position: relative;
width: $mdc-switch-track-width;
height: $mdc-switch-track-height;
border-radius: 7px;
border-radius: 50%;
outline: none;
user-select: none;

Expand Down Expand Up @@ -88,7 +88,7 @@
transition:
mdc-switch-transition(transform),
mdc-switch-transition(background-color);
border-radius: $mdc-switch-knob-diameter / 2;
border-radius: 50%;
z-index: 1;

// Focus indicator
Expand All @@ -99,7 +99,7 @@
transition:
mdc-switch-transition(transform),
mdc-switch-transition(background-color);
border-radius: $mdc-switch-focus-ring-diameter / 2;
border-radius: 50%;
opacity: .2;
content: "";
}
Expand Down

0 comments on commit 1b2219b

Please sign in to comment.