Skip to content

Commit 38cc279

Browse files
authored
fix(circular-progress): make sure that the fill-color-default can be used by the user and flip the gradient for star and end to follow the progressbar progress direction (#15560)
1 parent 59c0e76 commit 38cc279

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
@return extend($theme, (
6565
name: $name,
6666
base-circle-color: $base-circle-color,
67+
fill-color-default: $fill-color-default,
6768
fill-color-default-start: $fill-color-default-start,
6869
fill-color-default-end: $fill-color-default-end,
6970
fill-color-danger: $fill-color-danger,
@@ -134,6 +135,8 @@
134135
transform-origin: center;
135136

136137
%outer {
138+
stroke: var-get($theme, 'fill-color-default');
139+
137140
@if $variant != 'bootstrap' {
138141
animation: igx-initial-dashoffset var(--_transition-duration) linear;
139142
} @else {
@@ -310,14 +313,14 @@
310313
%text--hidden {
311314
visibility: hidden;
312315
}
313-
314-
%gradient-start {
315-
stop-color: var-get($theme, 'fill-color-default-start');
316-
}
317-
318-
%gradient-end {
319-
stop-color: var-get($theme, 'fill-color-default-end');
320-
}
316+
317+
%gradient-start {
318+
stop-color: var-get($theme, 'fill-color-default-end');
319+
}
320+
321+
%gradient-end {
322+
stop-color: var-get($theme, 'fill-color-default-start');
323+
}
321324

322325
@keyframes igx-indeterminate-accordion {
323326
0% {

0 commit comments

Comments
 (0)