Bug 8107 - Disabled buttons not distinguishable from enabled buttons
authorOwen Leonard <oleonard@myacpl.org>
Fri, 18 May 2012 15:51:17 +0000 (11:51 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 25 May 2012 15:30:50 +0000 (17:30 +0200)
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>
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css

index a05b6e5..dcd9540 100644 (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;
 }