Skip to content

Commit 9e8d20d

Browse files
committed
fix(progressbar): give unique names to keyframes animations
1 parent e0d829d commit 9e8d20d

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

src/components/progress/themes/animations.scss

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $easing-curves: (
2929
}
3030

3131
// Primary animation
32-
@keyframes indeterminate-primary {
32+
@keyframes igc-indeterminate-primary {
3333
0% {
3434
transform: translateX(0);
3535
}
@@ -49,7 +49,7 @@ $easing-curves: (
4949
}
5050
}
5151

52-
@keyframes indeterminate-primary-scale {
52+
@keyframes igc-indeterminate-primary-scale {
5353
0% {
5454
transform: scaleX(0.08);
5555
}
@@ -70,7 +70,7 @@ $easing-curves: (
7070
}
7171

7272
// Secondary animation
73-
@keyframes indeterminate-secondary {
73+
@keyframes igc-indeterminate-secondary {
7474
0% {
7575
animation-timing-function: timing-function('secondary-translate-start');
7676
transform: translateX(0);
@@ -91,7 +91,7 @@ $easing-curves: (
9191
}
9292
}
9393

94-
@keyframes indeterminate-secondary-scale {
94+
@keyframes igc-indeterminate-secondary-scale {
9595
0% {
9696
animation-timing-function: timing-function('secondary-scale-slow-start');
9797
transform: scaleX(0.08);
@@ -113,7 +113,7 @@ $easing-curves: (
113113
}
114114

115115
// Fluent linear animations
116-
@keyframes indeterminate-bar-fluent {
116+
@keyframes igc-indeterminate-bar-fluent {
117117
0% {
118118
transform: translateX(-100%);
119119
transform-origin: left;
@@ -125,7 +125,7 @@ $easing-curves: (
125125
}
126126
}
127127

128-
@keyframes indeterminate-bar-fluent-rtl {
128+
@keyframes igc-indeterminate-bar-fluent-rtl {
129129
0% {
130130
transform: translateX(100%);
131131
transform-origin: right;
@@ -138,7 +138,7 @@ $easing-curves: (
138138
}
139139

140140
// Circular animations
141-
@keyframes indeterminate-accordion {
141+
@keyframes igc-indeterminate-accordion {
142142
0% {
143143
stroke-dashoffset: calc(#{$circumference} * 2);
144144
stroke-dasharray: calc(#{$circumference} * 9 / 10);
@@ -149,7 +149,7 @@ $easing-curves: (
149149
}
150150
}
151151

152-
@keyframes indeterminate-accordion-rtl {
152+
@keyframes igc-indeterminate-accordion-rtl {
153153
0% {
154154
stroke-dashoffset: calc(#{$circumference} * -2);
155155
stroke-dasharray: calc(#{$circumference} * 9 / 10);
@@ -162,7 +162,7 @@ $easing-curves: (
162162

163163
// Fluent: Circular progress animation for indeterminate state.
164164
// Dynamically changes stroke-dasharray and rotates for a smooth spinning effect.
165-
@keyframes indeterminate-circular-fluent {
165+
@keyframes igc-indeterminate-circular-fluent {
166166
0% {
167167
// Start the stroke at the correct position by adjusting the dasharray and dashoffset
168168
stroke-dasharray: calc(#{$circumference} * 0.0001), #{$circumference};
@@ -193,7 +193,7 @@ $easing-curves: (
193193
}
194194
}
195195

196-
@keyframes indeterminate-circular-fluent-rtl {
196+
@keyframes igc-indeterminate-circular-fluent-rtl {
197197
0% {
198198
stroke-dasharray: calc(#{$circumference} * 0.0001), #{$circumference};
199199

@@ -220,7 +220,7 @@ $easing-curves: (
220220
}
221221

222222
// Generic animations
223-
@keyframes rotate-center {
223+
@keyframes igc-rotate-center {
224224
0% {
225225
transform: rotate(0);
226226
}
@@ -230,14 +230,14 @@ $easing-curves: (
230230
}
231231
}
232232

233-
@keyframes initial-counter {
233+
@keyframes igc-initial-counter {
234234
from {
235235
--_progress-integer: 0;
236236
--_progress-fraction: 0;
237237
}
238238
}
239239

240-
@keyframes initial-width {
240+
@keyframes igc-initial-width {
241241
from {
242242
width: 0;
243243
}
@@ -247,7 +247,7 @@ $easing-curves: (
247247
}
248248
}
249249

250-
@keyframes initial-dashoffset {
250+
@keyframes igc-initial-dashoffset {
251251
from {
252252
/* Start with no progress (0%) */
253253
stroke-dashoffset: #{$circumference};

src/components/progress/themes/circular/circular.progress.base.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
[part~='counter'] {
33-
animation: initial-counter var(--_transition-duration) ease-in-out;
33+
animation: igc-initial-counter var(--_transition-duration) ease-in-out;
3434
transition:
3535
--_progress-integer var(--_transition-duration) ease-in-out,
3636
--_progress-fraction var(--_transition-duration) ease-in-out;
@@ -54,7 +54,7 @@
5454
transform-origin: center;
5555

5656
&:not([part~='indeterminate']) [part~='fill'] {
57-
animation: initial-dashoffset var(--_transition-duration) linear;
57+
animation: igc-initial-dashoffset var(--_transition-duration) linear;
5858
stroke-dasharray: #{$circumference} #{$circumference};
5959
stroke-dashoffset: calc(#{$circumference} - var(--_progress-percentage) * #{$circumference});
6060
}
@@ -86,18 +86,18 @@
8686

8787
[part~='svg'][part~='indeterminate'] {
8888
transform-origin: 50% 50%;
89-
animation: 3s linear 0s infinite $animation-direction none running rotate-center;
89+
animation: 3s linear 0s infinite $animation-direction none running igc-rotate-center;
9090

9191
[part~='fill'] {
9292
stroke-dashoffset: calc(#{$circumference} * 2);
93-
animation: indeterminate-accordion 1.5s cubic-bezier(0, 0.085, 0.68, 0.53) $animation-direction infinite;
93+
animation: igc-indeterminate-accordion 1.5s cubic-bezier(0, 0.085, 0.68, 0.53) $animation-direction infinite;
9494
}
9595
}
9696

9797
:host(:dir(rtl)),
9898
:host([dir='rtl']) {
9999
[part~='svg'][part~='indeterminate'] [part~='fill'] {
100-
animation-name: indeterminate-accordion-rtl;
100+
animation-name: igc-indeterminate-accordion-rtl;
101101
}
102102

103103
[part~='indeterminate'] {
@@ -114,7 +114,7 @@
114114

115115
[part~='svg'] {
116116
&:not([part~='indeterminate']) [part~='fill'] {
117-
animation: initial-dashoffset-rtl var(--_transition-duration) linear;
117+
animation: igc-initial-dashoffset var(--_transition-duration) linear;
118118
stroke-dasharray: #{$circumference} #{$circumference};
119119
stroke-dashoffset: calc(#{$circumference} + var(--_progress-percentage) * #{$circumference});
120120
}

src/components/progress/themes/circular/shared/circular.progress.fluent.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ $theme: $fluent;
2727

2828
[part~='fill'] {
2929
stroke-linecap: round;
30-
animation: 2s linear 0s infinite normal none running indeterminate-circular-fluent
30+
animation: 2s linear 0s infinite normal none running igc-indeterminate-circular-fluent
3131
}
3232
}
3333

3434
:host(:dir(rtl)),
3535
:host([dir='rtl']) {
3636
[part~='svg'][part~='indeterminate'] [part~='fill'] {
37-
animation-name: indeterminate-circular-fluent-rtl;
37+
animation-name: igc-indeterminate-circular-fluent-rtl;
3838
}
3939
}

src/components/progress/themes/linear/linear.progress.base.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
[part~='fill']:not([part~='indeterminate']) {
5353
overflow: hidden;
54-
animation: initial-width var(--_transition-duration) linear;
54+
animation: igc-initial-width var(--_transition-duration) linear;
5555
}
5656

5757
[part~='indeterminate'],
@@ -74,20 +74,20 @@
7474

7575
[part~='indeterminate']:not([part~='secondary']) {
7676
transform: scale3d(0, 1, 1);
77-
animation: indeterminate-primary var(--linear-animation-duration) infinite linear;
77+
animation: igc-indeterminate-primary var(--linear-animation-duration) infinite linear;
7878
left: -145.1666%;
7979

8080
&::after {
81-
animation: indeterminate-primary-scale var(--linear-animation-duration) infinite linear;
81+
animation: igc-indeterminate-primary-scale var(--linear-animation-duration) infinite linear;
8282
}
8383
}
8484

8585
[part~='secondary'] {
86-
animation: indeterminate-secondary var(--linear-animation-duration) infinite linear;
86+
animation: igc-indeterminate-secondary var(--linear-animation-duration) infinite linear;
8787
left: -54.8888%;
8888

8989
&::after {
90-
animation: indeterminate-secondary-scale var(--linear-animation-duration) infinite linear;
90+
animation: igc-indeterminate-secondary-scale var(--linear-animation-duration) infinite linear;
9191
width: 100%;
9292
height: inherit;
9393
}
@@ -98,7 +98,7 @@
9898
}
9999

100100
[part~='counter'] {
101-
animation: initial-counter var(--_transition-duration) ease-in-out;
101+
animation: igc-initial-counter var(--_transition-duration) ease-in-out;
102102
counter-reset:
103103
progress-integer var(--_progress-integer, 0)
104104
progress-fraction var(--_progress-fraction, 0);

src/components/progress/themes/linear/shared/linear.progress.fluent.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $track-color: color(gray, 200);
1717
}
1818

1919
[part~='indeterminate'] {
20-
animation-name: indeterminate-bar-fluent-rtl;
20+
animation-name: igc-indeterminate-bar-fluent-rtl;
2121
}
2222
}
2323

@@ -40,7 +40,7 @@ $track-color: color(gray, 200);
4040
[part~='indeterminate']:not([part~='secondary']) {
4141
width: 33% !important;
4242
min-width: 33%;
43-
animation-name: indeterminate-bar-fluent;
43+
animation-name: igc-indeterminate-bar-fluent;
4444
animation-duration: var(--linear-animation-duration);
4545
animation-timing-function: ease;
4646
animation-iteration-count: infinite;

0 commit comments

Comments
 (0)