Bug 8107 - Disabled buttons not distinguishable from enabled buttons

Add a "greyed-out" style for disabled buttons.

Having looked through the templates for examples of usage of this
I'm not convinced that we should really be showing disabled buttons.
I think in general it would be better to hide or show a button
based on whether the action is available.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

I agree, I think hiding or showing is better, but this patch is
harmless enough, until we want to go fixing our usage

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Owen Leonard 2012-05-18 11:51:17 -04:00 committed by Paul Poulain
parent 1b08f100ba
commit fe823735a5
1 changed files with 10 additions and 0 deletions

View File

@ -1721,6 +1721,16 @@ input[type=submit], input[type=reset], input[type=button], input.submit, button.
color: #333333;
}
input[type=submit]:disabled,
input[type=reset]:disabled,
input[type=button]:disabled,
input.submit:disabled,
button.submit:disabled {
color : #999;
border : 1px solid #C0C0C0;
background : #EEE none;
}
input[type=reset]:active, input[type=button]:active, input.submit:active, button.submit:active {
border : 1px inset #999999;
}