Accessibility: fixed ambiguous asterisk next to 'edit profile', with title and hidden text (OU-Bugz: 733).

This commit is contained in:
nfreear 2006-03-14 12:55:06 +00:00
parent fd14913ed6
commit ea78c234f9
2 changed files with 11 additions and 2 deletions

View 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;
}

View 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