MDL-15519 Added H2 tag for month selector in calendar (accessibility)

This commit is contained in:
sam_marshall 2008-07-14 11:05:40 +00:00
parent bf78427b08
commit 197c4f3b51
2 changed files with 10 additions and 3 deletions

View File

@ -744,7 +744,7 @@ function calendar_top_controls($type, $data) {
$content .= '<div style="text-align: center;"><a href="'.CALENDAR_URL.'view.php?view=upcoming"'.$courseid.'>'.userdate($time, get_string('strftimemonthyear'))."</a></div>\n";
break;
case 'display':
$content .= '<div style="text-align: center;"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month'.$courseid.'&amp;', 1, $data['m'], $data['y']).'">'.userdate($time, get_string('strftimemonthyear'))."</a></div>\n";
$content .= '<h2><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month'.$courseid.'&amp;', 1, $data['m'], $data['y']).'">'.userdate($time, get_string('strftimemonthyear'))."</a></h2>\n";
break;
case 'month':
list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']);

View File

@ -453,8 +453,15 @@ a.skip-block {
}
#calendar h1 {
font-size:1.0em;
margin:0;
font-size:1.0em;
margin:0;
}
#calendar .minicalendarblock h2 {
font-size:1.0em;
margin:0;
font-weight:normal;
text-align:center;
}
table.minicalendar {