-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixes color mode selection #12335
Fixes color mode selection #12335
Conversation
Thanks @abhi1693! I'm going to hold off on this until v3.5, just because it touches a lot of Javascript that may be difficult to fully test across various browsers & operating systems, and v3.4.9 is the last planned release for v3.4 |
This is supposed to be released under v3.5 only due to the reasons you have mentioned and the introduction of a new option. |
I haven't dug into this, but it appears to break the ability to toggle light/dark mode using the link under the user menu (top right corner). |
# Conflicts: # netbox/project-static/dist/netbox.js # netbox/project-static/dist/netbox.js.map
Ok, so the functionality only works when changed via the Profile option. Via that it still works as expected. Do we need the extra options in the footer and the top-right drop-down? Because the whole idea was to get rid of local storage to avoid further issues. I played around with the code a bit more and it requires more work if we want to keep the extra buttons for convenience. I overlooked the rack-elevation fix in my previous commit though. |
Yes, I believe we want to keep those, so that users have the option of easily toggling light/dark mode directly within the UI. |
I'll redo the implementation using local storage only and I think I should be able to clean up the complex logic that's in there. |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further action is taken. |
This PR has been automatically closed due to lack of activity. |
Fixes: #12330