-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(darkmode): prefer bg-light over bg-white #27425
base: master
Are you sure you want to change the base?
Conversation
Assigning to you @adamleithp because you've been working with our colors :) |
161a309
to
2e832b8
Compare
I'll have a look at this this week! |
Hey @kevin-secrist I'm struggling how to replicate these issues/ scenarios. I've reached out to some other devs and will return to this when I get the chance. |
Hi Adam, yes I'm actually having some issues replicating these scenarios now. For onboarding in particular it looks like there's some conditional logic here that I haven't dug into enough to fully understand. The mentioned featureFlag is set to posthog/frontend/src/scenes/onboarding/Onboarding.tsx Lines 116 to 119 in 3022fe2
posthog/frontend/src/scenes/onboarding/Onboarding.tsx Lines 189 to 195 in 3022fe2
Here are direct URLs to the others that I can still replicate:
All the onboarding stuff was previously available at I'll also fix the merge conflicts now |
2e832b8
to
defe4c9
Compare
Oh, figured it out - the logged in user needs to have recent/active traffic/analytics coming in. If you use a demo site that isn't getting traffic (like I am) then you won't see the dashboard template. Once I went to my site and clicked around a bit and did a hard refresh, I was able to see the page. However, direct link does not work: Go to the onboarding wiz: |
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
Hello! Having a little bit of fun squashing bugs while also learning a little bit about the repo and PostHog in general. I love seeing this dev out in the open!
Problem
I had a UX issue during onboarding that made one of the components difficult to use. After a little tinkering it looks like an issue with dark mode. I've replaced all instances of
.bg-white
with.bg-light
where it makes sense (sorry if I'm overdoing it here). Some places (like the MFA QR code) are meant to be white and are left unchanged, but a few others I'm guessing should just be the normal background color. Let me know if there's a different class that's more appropriate.Changes
Onboarding Dashboard Template Configuration
Debug Repl
Shared Metric Experiment
In this case, it's not a dark mode issue but a consistency issue. It previously used
.bg-light
for specifically for dark mode but.bg-white
for light mode.Heatmap iFrame
I have not tested this, but my assumption is that this white background will become
bg-light
instead.Please ignore flaming spiderhog with tophat.
Onboarding iFrame
Same deal as above, this one is accessible at this url
https://us.posthog.com/project/<projectId>/onboarding/product_analytics?step=dashboard_template_configure
Does this work well for both Cloud and self-hosted?
Should have no impact
How did you test this code?
This was all done in chrome console, toggling classes.