Skip to content

Commit d73fcc1

Browse files
committed
fix: switch-pill issue
1 parent 89a4856 commit d73fcc1

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

scss/_switches.scss

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -254,36 +254,22 @@ $switch-icon-xs-width: 32px;
254254
$switch-icon-xs-height: 16px;
255255
$switch-icon-xs-font-size: 7px;
256256

257-
.switch.switch-default {
257+
.switch-default {
258258
@include switch("default", $switch-width, $switch-height, $switch-font-size, $handle-margin);
259259
}
260260

261-
.switch.switch-text {
261+
.switch-text {
262262
@include switch("text", $switch-text-width, $switch-text-height, $switch-text-font-size, $handle-margin);
263263
}
264264

265-
.switch.switch-icon {
265+
.switch-icon {
266266
@include switch("icon", $switch-icon-width, $switch-icon-height, $switch-icon-font-size, $handle-margin);
267267
}
268268

269-
.switch.switch-3d {
269+
.switch-3d {
270270
@include switch("ddd", $switch-width, $switch-height, $switch-font-size, 0);
271271
}
272272

273-
//pills style
274-
.switch-pill {
275-
.switch-label,
276-
.switch-handle {
277-
border-radius: 50em;
278-
}
279-
280-
.switch-label::before {
281-
right: 2px;
282-
}
283-
.switch-label::after {
284-
left: 2px;
285-
}
286-
}
287273

288274
@each $color, $value in $theme-colors {
289275
//normal style
@@ -299,3 +285,18 @@ $switch-icon-xs-font-size: 7px;
299285
@include switch-outline-alt-variant($value);
300286
}
301287
}
288+
289+
//pills style
290+
.switch-pill {
291+
.switch-label,
292+
.switch-handle {
293+
border-radius: 50em;
294+
}
295+
296+
.switch-label::before {
297+
right: 2px;
298+
}
299+
.switch-label::after {
300+
left: 2px;
301+
}
302+
}

0 commit comments

Comments
 (0)