]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use label tab for checkboxes
authormillette <millette@controlyourself.ca>
Fri, 28 Nov 2008 22:36:46 +0000 (17:36 -0500)
committermillette <millette@controlyourself.ca>
Fri, 28 Nov 2008 22:36:46 +0000 (17:36 -0500)
darcs-hash:20081128223646-099f7-79b7c961b4494ff7430bd3c0a0f4742888098ede.gz

lib/util.php
theme/identica/display.css

index c3d11b074cbc0980ba098278914bfa4c36952920..03720a7789776698ddfdf921accb75b802461051 100644 (file)
@@ -401,9 +401,8 @@ function common_checkbox($id, $label, $checked=false, $instructions=NULL, $value
                $attrs['disabled'] = 'true';
        }
        common_element('input', $attrs);
-       # XXX: use a <label>
        common_text(' ');
-       common_element('span', 'checkbox_label', $label);
+       common_element('label', array('class' => 'checkbox_label', 'for' => $id), $label);
        common_text(' ');
        if ($instructions) {
                common_element('span', 'input_instructions', $instructions);
index 52a63a5ae6a79647b8cde7e16a90d968db0bc97d..73acf4012142384dee5ede2f7e38c0834a58d7aa 100644 (file)
@@ -145,6 +145,12 @@ textarea:focus, input:focus {
     color: #91AA9D;
     }
 
+label.checkbox_label {
+    display: inline;
+    font-weight: normal;
+}
+
+
 #status_textarea {
     color: #193441;
 }
@@ -186,4 +192,4 @@ textarea:focus, input:focus {
 
 .message_single:hover {
     background-color: #F3F8EA;
-    }
\ No newline at end of file
+    }