From 9ff2b3e02f9ef27c3d13a4d594d22fff17445b18 Mon Sep 17 00:00:00 2001 From: Ben White Date: Mon, 13 Nov 2023 11:11:09 +0100 Subject: [PATCH] fix: No dark mode for unauthenticated pages (#18565) --- frontend/src/layout/navigation-3000/themeLogic.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/layout/navigation-3000/themeLogic.ts b/frontend/src/layout/navigation-3000/themeLogic.ts index a97fbd12c2d7f..811960d5bf15a 100644 --- a/frontend/src/layout/navigation-3000/themeLogic.ts +++ b/frontend/src/layout/navigation-3000/themeLogic.ts @@ -41,7 +41,11 @@ export const themeLogic = kea([ ], (darkModeSavedPreference, darkModeSystemPreference, featureFlags, sceneConfig) => { // NOTE: Unauthenticated users always get the light mode until we have full support across onboarding flows - if (sceneConfig?.layout === 'plain' || sceneConfig?.allowUnauthenticated) { + if ( + sceneConfig?.layout === 'plain' || + sceneConfig?.allowUnauthenticated || + sceneConfig?.onlyUnauthenticated + ) { return false } // Dark mode is a PostHog 3000 feature