-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[charts] Fix bar border radius on Firefox #18824
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
[charts] Fix bar border radius on Firefox #18824
Conversation
fba4a1e
to
ff2bbbb
Compare
Deploy preview: https://deploy-preview-18824--material-ui-x.netlify.app/ Bundle size reportTotal Size Change: 🔺+2.36KB(+0.02%) - Total Gzip Change: 🔺+485B(+0.01%) Show details for 100 more bundles (22 more not shown)@mui/x-charts/SparkLineChart parsed: 🔺+474B(+0.22%) gzip: 🔺+111B(+0.17%) |
CodSpeed Performance ReportMerging #18824 will not alter performanceComparing Summary
|
</clipPath> | ||
); | ||
} | ||
|
||
function generateClipPath( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main logic is here:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, the animation looks better too 👍
I just want to point out that this is "technically" a breaking change if users were previously targeting the clip rect somehow to customise it (eg: uneven border radius), though it is very very unlikely, so I'm ok with going forward with this 😆
Fixes #14690.
Fix bar border radius on Firefox.
Testing
Visual Test
Animation (10x slowdown)
Chrome:
Screen.Recording.2025-07-16.at.14.57.05.mov
Firefox:
Screen.Recording.2025-07-16.at.14.57.36.mov
Safari:
Screen.Recording.2025-07-16.at.14.58.03.mov