Skip to content

Commit

Permalink
fix(module:progress): fix stroke color is not updated (NG-ZORRO#3445)
Browse files Browse the repository at this point in the history
* fix(module:progress): fix stroke color is not updated

close NG-ZORRO#3441

* chore: remove color in demo

* fix: type

Co-Authored-By: Hsuan Lee <[email protected]>

* fix: type
  • Loading branch information
Wendell authored and Ricbet committed Apr 9, 2020
1 parent 496ba66 commit 7cf6182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/progress/nz-progress.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@ export class NzProgressComponent implements OnInit, OnChanges {
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s'
};
this.strokePathStyle = {
stroke: this.nzStrokeColor || (null as any), // tslint:disable-line:no-any
strokeDasharray: `${(this.nzPercent / 100) * (len - gapDegree)}px ${len}px`,
strokeDashoffset: `-${gapDegree / 2}px`,
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' // eslint-disable-line
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s'
};
}

Expand Down

0 comments on commit 7cf6182

Please sign in to comment.