-
Notifications
You must be signed in to change notification settings - Fork 478
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
Demo page "switch theme" does not work. #84
Comments
Hah! Great catch. I don't think there was discussion about this before. You're right that we'll probably have to use the standalone files to get this working. |
In the future, I think personally it is better to use standalone files in demo page and use "prefers-color-scheme" in landing page. For now, do change it to read standalone files now? |
Yeah, if you can make a pull request that switches to the standalone files, that would be great! Thanks a ton, @kimulaco. Let's leave this open and discuss more after that merge. I personally like having the "most default" file on all pages where possible. Maybe some feature detection in the JavaScript? |
@kylejrp I will try to adjust the switch by detect "prefers-color-scheme" with "window.matchMedia". |
Yes good catch, this needs to be taken care of with the new interactive version picker! (#27) I think if we recommend the normal versions as default but always use standalone builds on the demo page, we pretty much "don't practice what we preach" and people will probably be confused why the demo page behaves differently than their own page. |
I will adjusting to read the normal version by default. I think that showing the status is a good idea! |
@kylejrp Since you can switch the theme, you can close this issue, but do you wait for the version picker? |
I'll wait for #90 to automatically close the issue when it gets merged in. |
This has been fixed in 2.0. |
@kognise @kylejrp @jonaskuske
I think using CSS variables is a great idea!!(#70)
However, I found a problem on the demo page, though.
By use "prefers-color-scheme", it does not switch with "switch theme" on the demo page.
This is because the device's theme setting is prioritized.
So, in order to preview both "switch theme" and "prefers-color-scheme" on the demo page, I think it is necessary to take measures such as creating a dedicated demo page.(Page for loading "* .standalone.css".)
I am sorry if it has already been discussed somewhere or the correspondence is in progress.
The text was updated successfully, but these errors were encountered: