Quick note about accessibility though:
If you just display:none; your input, you're making it unaccessible through keyboard navigation.
Just hide it behind the label instead and everyone can toggle 🎉
Then add aria-label="Switch visual theme" to your input and blind users can know what's it about.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just added mine over at felixparadis.com :)
Quick note about accessibility though:
If you just
display:none;
your input, you're making it unaccessible through keyboard navigation.Just hide it behind the label instead and everyone can toggle 🎉
Then add
aria-label="Switch visual theme"
to your input and blind users can know what's it about.