Skip to content

Commit

Permalink
fix: use the correct design token color for the health chart background
Browse files Browse the repository at this point in the history
This change swaps out the color of the health chart "unfilled" section
for `theme.palette.background.application`. This is the same color
that's used in the sketches, so it should apply better for dark mode.

Why? I noticed that the graph looks choppy in dark mode, so figured
I'd go and investigate. This update makes it look a lot smoother.
  • Loading branch information
thomasheartman committed Nov 18, 2024
1 parent a55a956 commit 38ee6fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const ProjectHealth = () => {
cy='50'
r={ChartRadius}
fill='none'
stroke={theme.palette.grey[300]}
stroke={theme.palette.background.application}
strokeWidth={ChartStrokeWidth}
strokeDasharray={`${filledLength * circumference} ${gapLength * circumference}`}
strokeDashoffset={offset * circumference}
Expand Down

0 comments on commit 38ee6fb

Please sign in to comment.