summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 352706eff..c908088ff 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1509,7 +1509,12 @@ function theme_image($path, $alt = '', $title = '', $attributes = array(), $gets
*/
function theme_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
- return '<div class="breadcrumb">' . implode(' » ', $breadcrumb) . '</div>';
+ // Provide a navigational heading to give context for breadcrumb links to
+ // screen-reader users. Make the heading invisible with .element-invisible.
+ $output = '<h2 class="element-invisible">' . t('You are here') . '</h2>';
+
+ $output .= '<div class="breadcrumb">' . implode(' » ', $breadcrumb) . '</div>';
+ return $output;
}
}