imathis / fancy-buttons

Fancy CSS Buttons using Compass
http://brandonmathis.com/projects/fancy-buttons/
819 stars 55 forks source link

Disabled state #3

Closed dlee closed 14 years ago

dlee commented 14 years ago

It would be nice to have disabled states on the buttons, although I'm not sure if disabled-ness can be detected via CSS.

defkode commented 14 years ago

can be detected, it's pseudo state like :hover i.e: button:disabled

imathis commented 14 years ago

It's also possible to detect with the attribute selector button[disabled] which is a bit more accessible because no current version of IE supports :disabled. What a shame.

Anyway I've addressed this and released 0.3.7 which allows you to mark a button as disabled with the class="disabled" or by adding a disabled property to the button. Now the button will be more transparent and the state won't change for any interaction. Give it a shot and tell me if that's what you were looking for.

Here's the diff

imathis commented 14 years ago

I've updated the demo so you can see this in action: http://brandonmathis.com/projects/fancy-buttons/demo/

dlee commented 14 years ago

Cool, the demo works. Thanks!