Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): correctly calculate the circumference and offset of the progress citcle #772

Merged
merged 3 commits into from
Jun 15, 2024
Merged

fix(ui): correctly calculate the circumference and offset of the progress citcle #772

merged 3 commits into from
Jun 15, 2024

Conversation

henryStelle
Copy link
Contributor

@henryStelle henryStelle commented Jun 15, 2024

Closes #771

The stroke-dasharray and stroke-dashoffset were improperly calculated, resulting in the progress circle "completing" when the percentage was only 90%.

Current version:

image

I refactored the styling to make it more declarative. I also removed the rounded edge on the border so there is a gap with the percentage > 98%.

Fixed version:

image

@felixmosh
Copy link
Owner

Hi, thank you for this PR 🙏🏼
Can you make sure it works properly in Safari & Firefox?

@henryStelle
Copy link
Contributor Author

Good call, firefox didn't work, but now it does!

@felixmosh felixmosh merged commit 320515b into felixmosh:master Jun 15, 2024
4 checks passed
@henryStelle henryStelle deleted the fix-progress branch June 15, 2024 16:38
@felixmosh
Copy link
Owner

Released in v5.20.2
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Progress circle filled when progress < 100%
2 participants