saadeghi / daisyui

🌼 🌼 🌼 🌼 🌼  The most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.27k stars 1.31k forks source link

bug: Invalid theme switch(主题切换无效) #2693

Closed peng-xiao-shuai closed 11 months ago

peng-xiao-shuai commented 11 months ago

What version of daisyUI are you using?

4.4.23

Which browsers are you seeing the problem on?

Chrome Android

Reproduction URL

https://daisyui.com/docs/themes/

Describe your issue

以 daisyUI 官网为例子,在手机浏览器中打开后更改主题无效

Taking daisyUI's official website as an example, changing the theme after opening it in the mobile browser does not work

https://github.com/saadeghi/daisyui/assets/53845479/3187b0e5-e8bf-414b-ae60-854f73010296

github-actions[bot] commented 11 months ago

Thank you @peng-xiao-shuai for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

peng-xiao-shuai commented 11 months ago

daisyUI 在 3.9.4 版本中工作正常

daisyUI works fine in version 3.9.4

saadeghi commented 11 months ago

Which version of Android Chrome are you using?

peng-xiao-shuai commented 11 months ago

Which version of Android Chrome are you using?

它在谷歌浏览器中没有问题,可能只是部分浏览器无法更改主题 我测试了 chrome、safari、Via 浏览器、华为浏览器,只有 Via 浏览器(5.1.1)、华为浏览器 无法更改

It doesn't have a problem in Google Chrome, it may just be that some browsers can't change the theme I have tested chrome, safari, Via browser and Huawei browser, only Via browser (5.1.1) and Huawei browser cannot be changed

saadeghi commented 11 months ago

You may want to use a modern browser that can support newer CSS features.

Or if you can't use a modern, updated browser, you can use daisyUI 3 instead of 4