Skip to content

Commit 5fcfd1c

Browse files
authored
[DEV-10626] Escape Special Characters (#2531)
* Escape Special Characters * Tweak
1 parent 9d97cc9 commit 5fcfd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/chart/src/components/PieChart/PieChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const PieChart = React.forwardRef<SVGSVGElement, PieChartProps>((props, ref) =>
268268
const textOpacity = shouldMute ? 0.3 : 1
269269

270270
return (
271-
<Group key={key} className={`slice-${key}`}>
271+
<Group key={key} className={`slice-${CSS.escape(String(key))}`}>
272272
{/* ── the slice */}
273273
<animated.path
274274
d={to([styles.startAngle, styles.endAngle], (start: number, end: number) =>

0 commit comments

Comments
 (0)