sandoche / Darkmode.js

🌓 Add a dark-mode / night-mode to your website in a few seconds
https://darkmodejs.learn.uno
MIT License
2.72k stars 176 forks source link

Made button element invisible until widget is displayed #34

Closed tmbv93 closed 4 years ago

tmbv93 commented 4 years ago

This is intended to solve #31.

I think the issue was introduced in #27. const button = document.createElement('button');

The toggle-button was changed from a div to a button-element, and since the button element has default browser styles it became visible!

Not very familiar with this project yet and will gladly listen to feedback!

sandoche commented 4 years ago

Nicely done, thanks !