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(experiments): shorten exposures header fade-out (#77071)

Juraj Majerikb696a3d14fea
diff --git a/frontend/src/scenes/experiments/ExperimentView/Exposures.tsx b/frontend/src/scenes/experiments/ExperimentView/Exposures.tsx
index 0cb7efe10372..c59e9db79cd3 100644
--- a/frontend/src/scenes/experiments/ExperimentView/Exposures.tsx
+++ b/frontend/src/scenes/experiments/ExperimentView/Exposures.tsx
@@ -286,12 +286,14 @@ export function Exposures(): JSX.Element {
</span>
{!isExperimentDraft && (
- // Transitioning visibility delays the hidden flip until the fade-out finishes
+ // Transitioning visibility delays the hidden flip until the fade-out finishes.
+ // The fade-out is shorter so it ends before the 200ms panel slide does; at equal
+ // durations the exit reads as sluggish.
<div
- className={`flex items-center gap-3 transition-[opacity,visibility] duration-300 ease-in-out ${
+ className={`flex items-center gap-3 transition-[opacity,visibility] ease-in-out ${
isCollapsed
- ? 'visible opacity-100 pointer-events-auto'
- : 'invisible opacity-0 pointer-events-none'
+ ? 'visible opacity-100 pointer-events-auto duration-300'
+ : 'invisible opacity-0 pointer-events-none duration-150'
}`}
>
{exposuresLoading ? (