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 <HsuanGM@gmail.com>

* fix: type
  • Loading branch information
Wendell authored and hsuanxyz committed May 17, 2019
1 parent 6458c57 commit 80c6ed4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/progress/nz-progress.component.ts
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 80c6ed4

Please sign in to comment.