Quickly created a configurable Material Design menu button via SCSS.
A quick bug in the eye: everything in the click handler can be cut down to $(this).toggleClass('material--arrow'); FYI :-)
what is the purpose of $hasBackground? I removed the variable and all the if statements and it still works
@malydok yeah, you're right, fixed it, thanks!
@diginhecos The purpose of $hasBackground is that you can choose whether the button has a background with a solid color or it has no background (transparent).
- removed alsolike() for better preview when modifying this pen
- use toggleClass()
Need to know how to enable it? Go here.