Skip to content

Commit 2cbba11

Browse files
committed
fix(switch): incorrect thumb position
1 parent 68bd1cc commit 2cbba11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/core/styles/components/switch/_switch-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
), map-get($theme, variant));
167167

168168
$switch-off-offset: map-get((
169-
material: 1px,
169+
material: -1px,
170170
fluent: $switch-thumb-width / 3
171171
), map-get($theme, variant));
172172

@@ -272,7 +272,7 @@
272272
}
273273

274274
@include if-rtl() {
275-
transform: translateX(#{rem($switch-off-offset)});
275+
transform: translateX(#{rem(-1 * $switch-off-offset)});
276276
}
277277

278278
&:hover {

0 commit comments

Comments
 (0)