mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-15519 Added H2 tag for month selector in calendar (accessibility)
This commit is contained in:
parent
bf78427b08
commit
197c4f3b51
@ -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.'&', 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.'&', 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']);
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user