From 197c4f3b51cfadada33bfc9180fe1f9c68d0bf84 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Mon, 14 Jul 2008 11:05:40 +0000 Subject: [PATCH] MDL-15519 Added H2 tag for month selector in calendar (accessibility) --- calendar/lib.php | 2 +- theme/standard/styles_fonts.css | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index b9d2dff524..d8386a9d51 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -744,7 +744,7 @@ function calendar_top_controls($type, $data) { $content .= '
'.userdate($time, get_string('strftimemonthyear'))."
\n"; break; case 'display': - $content .= '
'.userdate($time, get_string('strftimemonthyear'))."
\n"; + $content .= '

'.userdate($time, get_string('strftimemonthyear'))."

\n"; break; case 'month': list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']); diff --git a/theme/standard/styles_fonts.css b/theme/standard/styles_fonts.css index 7b7540d9ec..7c22133b84 100644 --- a/theme/standard/styles_fonts.css +++ b/theme/standard/styles_fonts.css @@ -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 { -- 2.39.5