halfmoonui / halfmoon

Halfmoon is a highly customizable, drop-in Bootstrap replacement. It comes with three built-in core themes, with dark mode support for all themes and components.
https://www.gethalfmoon.com
MIT License
3.01k stars 118 forks source link

Sidebar, darkmode and modals are not automatically toggled as expected. #125

Closed ScopesCodez closed 2 years ago

ScopesCodez commented 2 years ago

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.

makerio90 commented 2 years ago

do you have data-set-preferred-mode-onload="true" in your <body> tag?

ScopesCodez commented 2 years ago

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.

ScopesCodez commented 2 years ago

I don't think this is normal.

ScopesCodez commented 2 years ago

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.

Supernova3339 commented 1 year ago

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: @.***>