Skip to content

Commit aacbe27

Browse files
authored
Changes strokeWidth to always equal strokeWidth. (#80)
Adds opacity set to 0 on 0 progress (ptg), otherwise 1. Due to the CSS transition and element width race-condition there is a need to keep the width greater than 0. Co-authored-by: mjfwebb <michael@w3bb.net>
1 parent c2bb541 commit aacbe27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Circle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ class Circle extends Component {
107107
d={pathString}
108108
stroke={stroke}
109109
strokeLinecap={strokeLinecap}
110-
strokeWidth={ptg === 0 ? 0 : strokeWidth}
110+
strokeWidth={strokeWidth}
111+
opacity={ptg === 0 ? 0 : 1}
111112
fillOpacity="0"
112113
style={pathStyle}
113114
ref={path => {

0 commit comments

Comments
 (0)