I thought it would be only with css , but you had used javascript :)
It's only for toggling the classes on 'click' event.
I think it was possible to do with checkbox ) if we speak about css only .
Yeah, that is a decent trick.. You can visually hide the checkbox and add another element on it.. but it can have some accessibility issues..
Thank you for article)
I'm glad
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
I thought it would be only with css , but you had used javascript :)
It's only for toggling the classes on 'click' event.
I think it was possible to do with checkbox ) if we speak about css only .
Yeah, that is a decent trick.. You can visually hide the checkbox and add another element on it.. but it can have some accessibility issues..
Thank you for article)
I'm glad