Skip to content

Commit f7b16b4

Browse files
committed
Fix custom toggle issues DesignRevision#8 and DesignRevision#9
1 parent a47e554 commit f7b16b4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/scss/_custom-forms.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@
327327
display: block;
328328
border-radius: $custom-toggle-border-radius;
329329
border: $custom-toggle-border;
330+
opacity: 0.99;
330331

331332
&:hover {
332333
cursor: pointer;
@@ -367,7 +368,7 @@
367368
}
368369

369370
.custom-control-input:checked + .custom-control-indicator:after {
370-
left: calc(100% - 3px);
371+
left: $custom-toggle-width - $custom-toggle-border-width - 3px;
371372
transform: translateX(-100%);
372373
}
373374

src/scss/_variables.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ $custom-file-text: (
505505
// Custom toggle
506506
$custom-toggle-width: 50px;
507507
$custom-toggle-height: 28px;
508-
$custom-toggle-border: 1px solid $input-border-color;
508+
$custom-toggle-border-width: 1px;
509+
$custom-toggle-border: $custom-toggle-border-width solid $input-border-color;
509510
$custom-toggle-background-color: $white;
510511
$custom-toggle-border-radius: 100px;
511512

0 commit comments

Comments
 (0)