: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(insights): crop emoji annotation badges to the glyph (#89090)
Sam Pennington16e1aea68149
diff --git a/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scss b/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scssindex f0fae54126f7..288f4a2a2c8b 100644--- a/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scss+++ b/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scss@@ -26,14 +26,18 @@transform-origin: center;}- // An emoji is illegible at the small count-badge size on the saturated data fill,- // so give it a larger disc and a plain surface background to read against.+ // Hug the emoji with a soft blurred halo of the chart background instead of a+ // solid disc. The drop-shadow follows the glyph alpha, so it crops to the icon+ // shape and fades out rather than hiding the axis line behind it.> .LemonBadge.AnnotationsBadge__emoji {--lemon-badge-size: 1.5rem;--lemon-badge-font-size: 1rem;color: inherit;- background: var(--color-bg-surface-primary);+ background: none;+ filter: drop-shadow(0 0 1px var(--color-bg-surface-primary))+ drop-shadow(0 0 2px var(--color-bg-surface-primary)) drop-shadow(0 0 3px var(--color-bg-surface-primary));+ border-color: transparent;}}