You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need buttons that have boolean state (on|off). After doing research the :active state is unsuitable for this http://stackoverflow.com/questions/12960068/keep-css-active-state-after-click-with-jquery more preferable is to add an .active class. Then in jquery you can do $('button').toggleClass('active') upon click. I just tried this out on my local build, all I had to do in the css is to replace every instance of :active to .active. I propose this library drop support for :active and switch over to using a class.
The text was updated successfully, but these errors were encountered:
:active is a pseudo class that happens when a user is clicking on a button. We won't be removing this state but rather adding a .active or .is-active class to the button so that you can use jquery to toggle the state programatically.
I need buttons that have boolean state (on|off). After doing research the
:active
state is unsuitable for this http://stackoverflow.com/questions/12960068/keep-css-active-state-after-click-with-jquery more preferable is to add an.active
class. Then in jquery you can do$('button').toggleClass('active')
upon click. I just tried this out on my local build, all I had to do in the css is to replace every instance of:active
to.active
. I propose this library drop support for:active
and switch over to using a class.The text was updated successfully, but these errors were encountered: