[joy-ui][Circular Progress] Svg progress bar is misaligned and its length changes when zoomed in Safari
Open
Nobody has claimed this yet.
component: CircularProgress
on hold
package: joy-ui
scope: progress
type: enhancement
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Steps to reproduce
Link to live example: https://mui.com/joy-ui/react-circular-progress/#introduction
Steps:
- Open link on Safari.
- Zoom in or zoom out.
Current behavior
- Progress bar is misaligned
- The progress has changed.
Expected behavior
- Progress bar should be centered.
- The progress should not change.
Context
I think the misalignment issue is caused by Safari miscalculating the transform and transform origin when zooming.
How about adding the animation to the top layer, like material-ui's Progress?
I think it would be possible to apply the rotation transform to the parent svg element instead of the circle element, or to split the Progress and Track into two svg elements.
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: Circular Progress align
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.