]> git.mjollnir.org Git - moodle.git/commitdiff
Accessibility: fixed ambiguous asterisk next to 'edit profile', with title and hidden...
authornfreear <nfreear>
Tue, 14 Mar 2006 12:55:06 +0000 (12:55 +0000)
committernfreear <nfreear>
Tue, 14 Mar 2006 12:55:06 +0000 (12:55 +0000)
blocks/admin/block_admin.php
theme/standard/styles_fonts.css

index 14951d8c2c535c69d1588c439f5c9b82bdc818d2..9eccdda57c1eb05149dbd7a5b83e47a70d875480 100644 (file)
@@ -113,7 +113,9 @@ class block_admin extends block_list {
             $fullname = fullname($USER, true);
             $editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&amp;course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
             if (empty($USER->description)) {
-                $this->content->items[]= $editmyprofile." <blink>*</blink>";
+               //Accessibility: replace non-standard <blink> with CSS (<a> makes title visible in IE).
+                $text = get_string('profile').' '.get_string('missingdescription');
+                $this->content->items[]= $editmyprofile.' <a title="'.$text.'" class="useredit blink">*<span class="accesshide">'.$text.'</span></a>';
             } else {
                 $this->content->items[]= $editmyprofile;
             }
@@ -208,7 +210,9 @@ class block_admin extends block_list {
             $editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.
                              $USER->id.'&amp;course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
             if (empty($USER->description)) {
-                $this->content->items[]= $editmyprofile." <blink>*</blink>";
+               //Accessibility: replace non-standard <blink> with CSS (<a> makes title visible in IE).
+                $text = get_string('profile').' '.get_string('missingdescription');
+                $this->content->items[]= $editmyprofile.' <a title="'.$text.'" class="useredit blink">*<span class="accesshide">'.$text.'</span></a>';
             } else {
                 $this->content->items[]= $editmyprofile;
             }
index d7e45aaf9bd175a419c0b380ba915f4c0fc58624..3e2131e2c294a29f1fa2be65fba89a51c7c9c584 100644 (file)
@@ -141,6 +141,11 @@ img.resize {
 acronym, abbr {
   cursor: help;
 }
+a.useredit, a:hover.useredit, .blink {
+  color: black;
+  text-decoration: blink;
+  cursor: help;
+}
 
 /***
  *** Header