MDL-15519: [Accessibility] Added heading tags around current month on monthly calendar view (and changed default styling so this doesn't affect appearance).

This commit is contained in:
sam_marshall
2008-07-03 14:16:22 +00:00
parent a4a57da9e2
commit ed9f9947e8
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -753,7 +753,7 @@ function calendar_top_controls($type, $data) {
$nextdate = make_timestamp($nextyear, $nextmonth, 1);
$content .= "\n".'<div class="calendar-controls">';
$content .= calendar_get_link_previous(userdate($prevdate, get_string('strftimemonthyear')), 'view.php?view=month'.$courseid.'&amp;', 1, $prevmonth, $prevyear);
$content .= '<span class="hide"> | </span><span class="current">'.userdate($time, get_string('strftimemonthyear'))."</span>\n";
$content .= '<span class="hide"> | </span><h1 class="current">'.userdate($time, get_string('strftimemonthyear'))."</h1>\n";
$content .= '<span class="hide"> | </span>'.calendar_get_link_next(userdate($nextdate, get_string('strftimemonthyear')), 'view.php?view=month'.$courseid.'&amp;', 1, $nextmonth, $nextyear);
$content .= "<span class=\"clearer\"><!-- --></span></div>\n";
break;
+5
View File
@@ -451,6 +451,11 @@ a.skip-block {
#calendar .maincalendar .day {
font-weight: bold;
}
#calendar h1 {
font-size:1.0em;
margin:0;
}
table.minicalendar {
font-size:0.85em;