mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Accessibility: fixed ambiguous asterisk next to 'edit profile', with title and hidden text (OU-Bugz: 733).
This commit is contained in:
parent
fd14913ed6
commit
ea78c234f9
@ -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.'&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.'&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;
|
||||
}
|
||||
|
@ -141,6 +141,11 @@ img.resize {
|
||||
acronym, abbr {
|
||||
cursor: help;
|
||||
}
|
||||
a.useredit, a:hover.useredit, .blink {
|
||||
color: black;
|
||||
text-decoration: blink;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
/***
|
||||
*** Header
|
||||
|
Loading…
x
Reference in New Issue
Block a user