Skip to content

: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.

feat(experiments): make reuse-flag affordance look like an action button (#60691)

Ben Lea7b3d263ddd73
diff --git a/frontend/src/scenes/experiments/ExperimentFlagKeyInput.tsx b/frontend/src/scenes/experiments/ExperimentFlagKeyInput.tsx
index 574032385b6f..26e1f0eb53d3 100644
--- a/frontend/src/scenes/experiments/ExperimentFlagKeyInput.tsx
+++ b/frontend/src/scenes/experiments/ExperimentFlagKeyInput.tsx
@@ -1,3 +1,4 @@
+import { IconCopy } from '@posthog/icons'
import { LemonBanner, LemonInput, LemonTable, Link } from '@posthog/lemon-ui'
import { IconOpenInNew } from 'lib/lemon-ui/icons'
@@ -83,9 +84,16 @@ export function ExperimentFlagKeyInput({
</div>
{!showReuseFlag ? (
- <Link subtle onClick={() => onToggleReuseFlag(true)} className="text-sm">
- Want to reuse an existing feature flag?
- </Link>
+ <div>
+ <LemonButton
+ type="secondary"
+ size="small"
+ icon={<IconCopy />}
+ onClick={() => onToggleReuseFlag(true)}
+ >
+ Reuse an existing feature flag
+ </LemonButton>
+ </div>
) : (
<div>
<div className="font-semibold mb-2">Use the same flag</div>