Skip to content

Commit

Permalink
[@mantine/charts] Fix strokeColor prop being passed to the DOM elem…
Browse files Browse the repository at this point in the history
…ent (#6507)
  • Loading branch information
rtivital committed Jul 12, 2024
1 parent 3d36f0e commit 308761e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const data = [
export function Usage() {
return (
<div style={{ padding: 40 }}>
<DonutChart data={data} strokeWidth={1} />
<DonutChart data={data} strokeWidth={1} strokeColor="red" />
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions packages/@mantine/charts/src/DonutChart/DonutChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export const DonutChart = factory<DonutChartFactory>((_props, ref) => {
children,
pieChartProps,
valueFormatter,
strokeColor,
...others
} = props;

Expand Down
2 changes: 1 addition & 1 deletion packages/@mantine/charts/src/PieChart/PieChart.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const data: PieChartCell[] = [
export function Usage() {
return (
<div style={{ padding: 40 }}>
<PieChart data={data} strokeWidth={1} />
<PieChart data={data} strokeWidth={1} strokeColor="red" />
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions packages/@mantine/charts/src/PieChart/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export const PieChart = factory<PieChartFactory>((_props, ref) => {
labelsPosition,
valueFormatter,
labelsType,
strokeColor,
...others
} = props;

Expand Down

0 comments on commit 308761e

Please sign in to comment.