Skip to content

Commit aabf8f1

Browse files
authored
Merge pull request #6138 from IgniteUI/switch-thumb-position
fix(switch): incorrect thumb position
2 parents 192e4c9 + 55f8fa4 commit aabf8f1

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
@@ -173,7 +173,7 @@
173173
), map-get($theme, variant));
174174

175175
$switch-off-offset: map-get((
176-
material: 1px,
176+
material: -1px,
177177
fluent: $switch-thumb-width / 3
178178
), map-get($theme, variant));
179179

@@ -279,7 +279,7 @@
279279
}
280280

281281
@include if-rtl() {
282-
transform: translateX(-#{rem($switch-off-offset)});
282+
transform: translateX(#{rem(-1 * $switch-off-offset)});
283283
}
284284

285285
&:hover {

0 commit comments

Comments
 (0)