else {
$skip_text = get_string('skipa', 'access', strip_tags($title));
}
- $skip_link = '<a href="#sb-'.$block_id.'" class="skip-block" title="'.$skip_text.'">'."\n".get_accesshide($skip_text)."\n".'</a>';
+ $skip_link = '<a href="#sb-'.$block_id.'" class="skip-block">'.$skip_text.'</a>';
$skip_dest = '<span id="sb-'.$block_id.'" class="skip-block-to"></span>';
if (! empty($heading)) {
- $heading = $skip_link . $heading;
- }
- /*else { //ELSE: I think a single link on a page, "Skip block 4" is too confusing - don't print.
echo $skip_link;
- }*/
+ }
+ //ELSE: a single link on a page "Skip block 4" is too confusing - ignore.
print_side_block_start($heading, $attributes);
// vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
-?>
+?>
\ No newline at end of file
*** Blocks
***/
-/*Accessibility: Skip block link, for screen reader users. */
-a.skip-block, .skip-block {
- display:block;
- width:2em;
- height:1px;
+/*Accessibility: Skip block link, for keyboard-only users. */
+a.skip-block {
+ position: absolute;
+ top: -1000em;
+ font-size: 0.85em;
}
-.sideblock .skip-block {
- height:4px;
+a.skip-block:focus, a.skip-block:active {
+ position: static;
+ display: block;
}
.skip-block-to {
display: block;
background: #eee;
border: 1px dashed #ddd;
padding: 3px;
-}
+}
\ No newline at end of file