:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(canvas): remove the antialiasing seam between stacked bar segments (#103865)
ruby childs115d5e39f079
diff --git a/products/canvas/packages/canvas_builder/build.mjs b/products/canvas/packages/canvas_builder/build.mjsindex f8baf86e5b18..69a10ab86bf6 100644--- a/products/canvas/packages/canvas_builder/build.mjs+++ b/products/canvas/packages/canvas_builder/build.mjs@@ -244,6 +244,14 @@ const platformStylesheet = `.recharts-pie .recharts-sector {stroke: none;}++/* Stacked bar segments are separate rectangles that share an edge. Each one antialiases against+ the page behind it rather than against its neighbour, so about a quarter of the background+ stays visible in the shared pixel column and reads as a dark hairline between segments.+ Snapping the edges to whole pixels removes the partial coverage that causes it. */+.recharts-bar-rectangle path {+ shape-rendering: crispEdges;+}`// Entry references (module scripts, stylesheets) parsed attribute-order-diff --git a/products/canvas/skills/building-react-quill-canvases/SKILL.md b/products/canvas/skills/building-react-quill-canvases/SKILL.mdindex cd99c8eb4621..c3d2706747ab 100644--- a/products/canvas/skills/building-react-quill-canvases/SKILL.md+++ b/products/canvas/skills/building-react-quill-canvases/SKILL.md@@ -87,7 +87,8 @@ text-card-foreground`; borders `border-border`. Never a hardcoded hex or light-o`var(--border)`/`var(--muted-foreground)`).- Some recharts defaults are hardcoded for a light theme and go wrong on a dark canvas. Theplatform stylesheet corrects them, so do not work around one in canvas code. Pie slice outlines- are one: recharts strokes every sector white, and the stylesheet removes the outline.+ are one: recharts strokes every sector white, and the stylesheet removes the outline. The+ antialiasing seam between stacked bar segments is another.- Write Unicode glyphs (curly quotes, ellipsis, arrows, emoji) as literal characters in JSX —`\uXXXX` escapes render verbatim in JSX text.