Skip to content

fix: dark-mode-on-login-page#6810

Merged
Zaimwa9 merged 3 commits intoFlagsmith:mainfrom
kartik-lamkhade:login_page
Mar 2, 2026
Merged

fix: dark-mode-on-login-page#6810
Zaimwa9 merged 3 commits intoFlagsmith:mainfrom
kartik-lamkhade:login_page

Conversation

@kartik-lamkhade
Copy link
Copy Markdown
Contributor

@kartik-lamkhade kartik-lamkhade commented Mar 1, 2026

Fix #6804
fix(frontend): resolve dark mode resetting issue
fix(ui): correct body color in dark mode

@kartik-lamkhade kartik-lamkhade requested a review from a team as a code owner March 1, 2026 14:03
@kartik-lamkhade kartik-lamkhade requested review from talissoncosta and removed request for a team March 1, 2026 14:03
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 1, 2026

@kartik-lamkhade is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the front-end Issue related to the React Front End Dashboard label Mar 1, 2026
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Free Tier Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread frontend/common/stores/account-store.js Outdated
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Mar 2, 2026 7:25am
flagsmith-frontend-staging Ready Ready Preview, Comment Mar 2, 2026 7:25am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Mar 2, 2026 7:25am

Request Review

Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution (and reactivity to this issue!). I have a couple of comments, mostly related to our identification of the issue.

The root issue is that in frontend/web/components/pages/HomePage.tsx L351 in Card we use the class bg-white that is not dark-mode aware.

So in addition to your fix (to keep the dark mode even after storage clearance) we would need to replace bg-white with bg-body that is dark mode aware.

Could you also rename the PR name to Fix: xxxx to pass the CI step please ? We should be good to go then!

Thanks again

@kartik-lamkhade kartik-lamkhade requested a review from Zaimwa9 March 2, 2026 07:13
@Zaimwa9 Zaimwa9 changed the title Fix #6804 fix: dark-mode-on-login-page Mar 2, 2026
Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Looks good to me! Thanks for the contribution :)

@Zaimwa9 Zaimwa9 merged commit 44549e2 into Flagsmith:main Mar 2, 2026
23 checks passed
@kartik-lamkhade kartik-lamkhade deleted the login_page branch March 2, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dark mode preference is cleared on login

2 participants