: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(annotations): make emoji annotation markers legible (#62002)
Paul D'Ambra35647d0c29f5
diff --git a/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scss b/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scssindex 5df5aa8ed4ea..baee425ab04b 100644--- a/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scss+++ b/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.scss@@ -25,6 +25,16 @@transform: scale(var(--annotations-badge-scale));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.+ > .LemonBadge.AnnotationsBadge__emoji {+ --lemon-badge-size: 1.5rem;+ --lemon-badge-font-size: 1rem;++ color: inherit;+ background: var(--color-bg-surface-primary);+ }}.AnnotationsPopover {diff --git a/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.tsx b/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.tsxindex a059a6904a36..480072a38b60 100644--- a/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.tsx+++ b/frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.tsx@@ -322,7 +322,13 @@ const AnnotationsBadge = React.memo(function AnnotationsBadgeRaw({>{annotations.length ? (singleEmoji ? (- <LemonBadge content={singleEmoji} status="data" size="small" active={active && isDateLocked} />+ <LemonBadge+ content={singleEmoji}+ status="data"+ size="small"+ active={active && isDateLocked}+ className="AnnotationsBadge__emoji"+ />) : (<LemonBadge.Numbercount={annotations.length}