Skip to content

Commit 8a219ec

Browse files
authored
fix(linear-progress): fix progress track not changing dir in rtl (#15185)
1 parent 4fd0651 commit 8a219ec

File tree

1 file changed

+55
-7
lines changed

1 file changed

+55
-7
lines changed

projects/igniteui-angular/src/lib/core/styles/components/progress/_progress-theme.scss

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@
153153
} @else if $variant == 'fluent' {
154154
gap: rem(2px);
155155
}
156-
157-
&[dir='rtl'],
158-
[dir='rtl'] & {
159-
%linear-bar {
160-
transform: rotateY(180deg);
161-
}
162-
}
163156
}
164157

165158
%linear-bar {
@@ -225,6 +218,13 @@
225218
&::after {
226219
animation: indeterminate-primary-scale 2000ms infinite linear;
227220
}
221+
222+
[dir="rtl"] & {
223+
animation: indeterminate-primary-rtl 2000ms infinite linear;
224+
left: auto;
225+
right: -145.166611%;
226+
transform-origin: top right;
227+
}
228228
}
229229

230230
%linear-indicator--indeterminate-secondary {
@@ -236,6 +236,13 @@
236236
width: 100%;
237237
height: inherit;
238238
}
239+
240+
[dir="rtl"] & {
241+
animation: indeterminate-secondary-rtl 2000ms infinite linear;
242+
left: auto;
243+
right: -54.888891%;
244+
transform-origin: top right;
245+
}
239246
}
240247

241248
%linear-indicator--default {
@@ -317,6 +324,26 @@
317324
}
318325
}
319326

327+
@keyframes indeterminate-primary-rtl {
328+
0% {
329+
transform: translateX(0);
330+
}
331+
332+
20% {
333+
animation-timing-function: $indeterminate-primary-translate-step-2;
334+
transform: translateX(0);
335+
}
336+
337+
59.15% {
338+
animation-timing-function: $indeterminate-primary-translate-step-3;
339+
transform: translateX(-83.67142%);
340+
}
341+
342+
100% {
343+
transform: translateX(-200.611057%);
344+
}
345+
}
346+
320347
@keyframes indeterminate-primary-scale {
321348
0% {
322349
transform: scaleX(.08);
@@ -359,6 +386,27 @@
359386
}
360387
}
361388

389+
@keyframes indeterminate-secondary-rtl {
390+
0% {
391+
animation-timing-function: $indeterminate-secondary-translate-step-1;
392+
transform: translateX(0);
393+
}
394+
395+
25% {
396+
animation-timing-function: $indeterminate-secondary-translate-step-2;
397+
transform: translateX(-37.651913%);
398+
}
399+
400+
48.35% {
401+
animation-timing-function: $indeterminate-secondary-translate-step-3;
402+
transform: translateX(-84.386165%);
403+
}
404+
405+
100% {
406+
transform: translateX(-160.277782%);
407+
}
408+
}
409+
362410
@keyframes indeterminate-secondary-scale {
363411
0% {
364412
animation-timing-function: $indeterminate-secondary-scale-step-1;

0 commit comments

Comments
 (0)