diff --git a/lib/weblib.php b/lib/weblib.php
index 26c9e3e6c42..bff31105829 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -4304,18 +4304,18 @@ function rebuildnolinktag($text) {
*/
function print_side_block($heading='', $content='', $list=NULL, $icons=NULL, $footer='', $attributes = array()) {
-//TODO (nfreear): Accessibility: skip link not invisible in Firefox - why?
- $skip_dest ='';
-/* static $block_id = 0;
+//TODO (nfreear): Accessibility: skip block link. Proposed new file, lang/en_utf8/accessibility.php
+ global $CFG;
+ static $block_id = 0;
$block_id++;
- $skip_link = "Skip block";
- $skip_dest = " ";
+ $skip_link = "
";
+ $skip_dest = " ";
if (! empty($heading)) {
$heading .= $skip_link;
} else {
echo $skip_link;
}
-*/
+
print_side_block_start($heading, $attributes);
if ($content) {
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index e048f58410b..5517fc26213 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -226,6 +226,8 @@ table.formtable tbody .htmlarea th
.helplink img {
vertical-align: middle;
margin: 0px 2px;
+ width: 17px;
+ height: 17px;
}
form.popupform {
@@ -392,17 +394,11 @@ table.flexible th.c0 {
*** Blocks
***/
-/*TODO (nfreear): Initially make link 'invisible' to visual users. Breaks - why? */
+/*Accessibility: Skip block link, for screen reader users. */
a.skip-block, .skip-block {
- font-weight:normal;
- font-size:0.8em;
- color:white;
- background-color:white;
- /*
display:block;
- width:6em;
- float:right;
- */
+ width:2em;
+ height:3px;
}
.skip-block-to {
font-size:1px;