Skip to content
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

Inconsistent Theme Application Based on URL Path #16

Open
akshaj65 opened this issue Jan 30, 2024 · 0 comments
Open

Inconsistent Theme Application Based on URL Path #16

akshaj65 opened this issue Jan 30, 2024 · 0 comments

Comments

@akshaj65
Copy link

akshaj65 commented Jan 30, 2024

Hello,

I've encountered an inconsistency with the theme . When the URL is "localhost:3000/incorrect", the light theme is correctly applied. However, when the URL changes to "localhost:3000/incorrect/wrong", the application unexpectedly switches to a dark theme.

Upon inspecting the element, I noticed a media query on the body: @media (prefers-color-scheme: dark). This seems to be responsible for the switch to dark mode. However, I have attached some screenshots to illustrate the issue.

This behavior is not consistent with the expected behavior of the application, which should always apply the light theme regardless of the URL path.

My default browser theme is set to dark mode

Could you please help investigate this issue? Any assistance would be greatly appreciated.

Thank you!

Attachments: Screenshots illustrating the issue
error
error2
reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant