Skip to content

Commit

Permalink
fix: No dark mode for unauthenticated pages (#18565)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Nov 13, 2023
1 parent 661032b commit 9ff2b3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/layout/navigation-3000/themeLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ export const themeLogic = kea<themeLogicType>([
],
(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
Expand Down

0 comments on commit 9ff2b3e

Please sign in to comment.