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.

fix(workflows): line the broadcasts feedback banner up with the list below it (#107286)

Daniel Marchukc57fe0ecaf11
diff --git a/products/workflows/frontend/Broadcasts/BroadcastsFeaturePreview.tsx b/products/workflows/frontend/Broadcasts/BroadcastsFeaturePreview.tsx
index 9667f4d847b8..327f1b7d1667 100644
--- a/products/workflows/frontend/Broadcasts/BroadcastsFeaturePreview.tsx
+++ b/products/workflows/frontend/Broadcasts/BroadcastsFeaturePreview.tsx
@@ -15,6 +15,8 @@ export function BroadcastsFeaturePreview(): JSX.Element {
prompt="Broadcasts is new. Is it doing what you need?"
modalTitle="Help shape broadcasts"
feedbackPlaceholder="Tell us what works, what doesn’t, or what you’d change"
+ // Line up with the search box and table below, which sit flush with the tab content.
+ className="my-2"
data-attr="broadcasts-feature-preview"
/>
)
diff --git a/products/workflows/frontend/FeaturePreviewFeedbackBanner.tsx b/products/workflows/frontend/FeaturePreviewFeedbackBanner.tsx
index 1f262e839a74..f6a031dc9c94 100644
--- a/products/workflows/frontend/FeaturePreviewFeedbackBanner.tsx
+++ b/products/workflows/frontend/FeaturePreviewFeedbackBanner.tsx
@@ -31,6 +31,8 @@ export interface FeaturePreviewFeedbackBannerProps {
prompt: string
modalTitle: string
feedbackPlaceholder: string
+ /** Spacing around the banner, for surfaces whose content isn't inset. */
+ className?: string
'data-attr'?: string
}
@@ -48,6 +50,7 @@ export function FeaturePreviewFeedbackBanner({
prompt,
modalTitle,
feedbackPlaceholder,
+ className = 'm-2',
'data-attr': dataAttr,
}: FeaturePreviewFeedbackBannerProps): JSX.Element {
const [rating, setRating] = useState<Rating | null>(null)
@@ -109,7 +112,7 @@ export function FeaturePreviewFeedbackBanner({
return (
<>
- <LemonBanner type="info" dismissKey={dismissKey} className="m-2">
+ <LemonBanner type="info" dismissKey={dismissKey} className={className}>
<div className="flex flex-wrap items-center justify-between gap-2">
<div className="text-secondary">{rating ? 'Thanks, your rating is saved.' : prompt}</div>
<div className="flex items-center gap-1">