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

Overhaul the color scheme selection #5616

Merged
merged 3 commits into from
Aug 10, 2023
Merged

Overhaul the color scheme selection #5616

merged 3 commits into from
Aug 10, 2023

Conversation

dtdesign
Copy link
Member

The previous approach was intended to provide a lot of flexibility at the cost of increased complexity and unsolved UI/UX challenges in regards to the toggle button. A major concern is the ability to easily access this switch on mobile devices that are incredibly space constrained and the page header offers insufficient space for an extra button.

It has its undeniable perks to switch the color scheme on the fly but this is still merely a gimmick and not very useful in day to day use. For example, developers can already dynamically override the color scheme through the browser’s developer tools. In addition the selection was stored in the local storage which not only causes multiple tabs to become out of sync but also causes a persistency issue when browsers are configured to flush the site’s data when the last tab are closed.

The new approach is much less “fancy”, but provides a consistent and accessible experience. The color scheme can now only be selected through the user settings and are stored on the server. Guests will always default to their device preference which reacts to dynamic changes, for example, during night time.

@dtdesign dtdesign merged commit 84a522c into master Aug 10, 2023
8 checks passed
@dtdesign dtdesign deleted the user-color-scheme branch August 10, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants