Button Background Color Change

I am using a button, not a toggle button. I would think I could do something like this [Code Snippet] to effect the style of the button on click, but it’s not working. I can see the style being applied to the button in the Chrome Developer Tools but my style is stricken out.

Any help would be appreciated!

Hello,

You should provide CSS rules for psuedo classes as well, such as :focus, :active and :hover to reset the values Webix defines for them.

You can use the same color or a darker shade for pseudo classes: https://webix.com/snippet/85e3751e

Interesting… I see your CSS changes, but “hover” does not change the background color.

For some reason, when I use your example in my project, the .toggleOn:active focus hover is still stricken out in Chrome. Any ideas?

https://drive.google.com/drive/u/0/folders/0ByRSd68Hpl6DQnZIcGJjWF9mcWs