Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 1b2219b

Browse files
author
Matty Goo
authored
fix(switch): change all border-radius values to 50% instead of hardcoded pixel values (#2255)
1 parent 3413f80 commit 1b2219b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mdc-switch/mdc-switch.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
position: relative;
5555
width: $mdc-switch-track-width;
5656
height: $mdc-switch-track-height;
57-
border-radius: 7px;
57+
border-radius: 50%;
5858
outline: none;
5959
user-select: none;
6060

@@ -88,7 +88,7 @@
8888
transition:
8989
mdc-switch-transition(transform),
9090
mdc-switch-transition(background-color);
91-
border-radius: $mdc-switch-knob-diameter / 2;
91+
border-radius: 50%;
9292
z-index: 1;
9393

9494
// Focus indicator
@@ -99,7 +99,7 @@
9999
transition:
100100
mdc-switch-transition(transform),
101101
mdc-switch-transition(background-color);
102-
border-radius: $mdc-switch-focus-ring-diameter / 2;
102+
border-radius: 50%;
103103
opacity: .2;
104104
content: "";
105105
}

0 commit comments

Comments
 (0)