Closed ScopesCodez closed 2 years ago
do you have data-set-preferred-mode-onload="true"
in your <body>
tag?
Just added it. However, now it just switched from dark mode to light mode and vice versa each time I reload the page. Meaning that's another issue, thus I'll just remove that.
I don't think this is normal.
Turns out it was all just an issue with my reading skills. Didn't notice some important notes on both the documentation and my code. Finally, fixed everything.
An easier solution here would be to just put comments to let you know which is which and use the working solution. It’s working, just not the way you expect it to work. Your ui looks awesome! Can’t wait to see what you’ve made on release. If there’s any way for me to make it easier for you, just switch the light and dark class names around.
On Mon, Apr 25, 2022 at 9:39 AM Scoopy @.***> wrote:
I don't think this https://capy-cdn.xyz/FeJdLmzW.webm is normal.
— Reply to this email directly, view it on GitHub https://github.com/halfmoonui/halfmoon/issues/125#issuecomment-1108664535, or unsubscribe https://github.com/notifications/unsubscribe-auth/APESZJS4DGBTJ5IFYAJ6IKTVG2VDPANCNFSM5UF7AUWA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
This video showcases my issue. Dark mode is not automatically enabled, thus I need to call
halfmoon.toggleDarkMode()
upon loading the page. And, the sidebar is auto opened as well. Finally, the "followers" modal is opened instantly without toggling it myself. And I cannot find a way to close it upon loading the page. I need help figuring out how to make everything work normally so my project won't look buggy to users.