mui / mui/material-ui

[joy-ui][Circular Progress] Svg progress bar is misaligned and its length changes when zoomed in Safari

Open
#43,401 1 comment 0 reactions 1 assignee View on GitHub

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:

  1. Open link on Safari.
  2. Zoom in or zoom out.
Current behavior
  1. Progress bar is misaligned
  2. The progress has changed.
스크린샷 2024-08-22 11 21 23
Expected behavior
  1. Progress bar should be centered.
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.