diff --git a/includes/menu.inc b/includes/menu.inc index dba3b3ce76aef02d8ecb048e29659812be234033..0119fb5b80bace0e20961579c4e229c8550b17c6 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -2053,12 +2053,12 @@ function theme_menu_local_tasks() { $output = array(); if ($primary = menu_primary_local_tasks()) { - $primary['#prefix'] = '<ul class="tabs primary">'; + $primary['#prefix'] = '<h2 class="element-invisible">' . t('Primary tabs') . '</h2><ul class="tabs primary">'; $primary['#suffix'] = '</ul>'; $output[] = $primary; } if ($secondary = menu_secondary_local_tasks()) { - $secondary['#prefix'] = '<ul class="tabs secondary">'; + $secondary['#prefix'] = '<h2 class="element-invisible">' . t('Secondary tabs') . '</h2><ul class="tabs secondary">'; $secondary['#suffix'] = '</ul>'; $output[] = $secondary; } diff --git a/modules/overlay/overlay.tpl.php b/modules/overlay/overlay.tpl.php index b475dee99fc3653dfb32f59c368de09c6294ff6d..d6d9e1c5912b739eabd5494a833d3dd53c55d028 100644 --- a/modules/overlay/overlay.tpl.php +++ b/modules/overlay/overlay.tpl.php @@ -29,7 +29,7 @@ <div id="overlay-close-wrapper"> <a id="overlay-close" href="#" class="overlay-close"><span class="element-invisible"><?php print t('Close overlay'); ?></span></a> </div> - <?php if ($tabs): ?><ul id="overlay-tabs"><?php print render($tabs); ?></ul><?php endif; ?> + <?php if ($tabs): ?><h2 class="element-invisible"><?php print t('Primary tabs'); ?></h2><ul id="overlay-tabs"><?php print render($tabs); ?></ul><?php endif; ?> </div> <div id="overlay-content"<?php print $content_attributes; ?>> <?php print $page; ?> diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php index a9d86f0d805da767d0bb1c18a2530422e321c331..6dc50c2d59732120b952c769e39f572567ce3c27 100644 --- a/themes/garland/page.tpl.php +++ b/themes/garland/page.tpl.php @@ -47,8 +47,8 @@ <h1<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h1> <?php endif; ?> <?php print render($title_suffix); ?> - <?php if ($tabs): ?><ul class="tabs primary"><?php print render($tabs) ?></ul></div><?php endif; ?> - <?php if ($tabs2): ?><ul class="tabs secondary"><?php print render($tabs2) ?></ul><?php endif; ?> + <?php if ($tabs): ?><h2 class="element-invisible"><?php print t('Primary tabs'); ?></h2><ul class="tabs primary"><?php print render($tabs) ?></ul></div><?php endif; ?> + <?php if ($tabs2): ?><h2 class="element-invisible"><?php print t('Secondary tabs'); ?></h2><ul class="tabs secondary"><?php print render($tabs2) ?></ul><?php endif; ?> <?php print $messages; ?> <?php print render($page['help']); ?> <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?> diff --git a/themes/seven/page.tpl.php b/themes/seven/page.tpl.php index 962bf786825d6c05a9dd287774ee53d0963436d3..430f83ccbefdda0c2297e7a9cf584f5f6be781a2 100644 --- a/themes/seven/page.tpl.php +++ b/themes/seven/page.tpl.php @@ -9,11 +9,17 @@ <h1 class="page-title"><?php print $title; ?></h1> <?php endif; ?> <?php print render($title_suffix); ?> - <?php if ($primary_local_tasks): ?><ul class="tabs primary"><?php print render($primary_local_tasks); ?></ul><?php endif; ?> + <?php if ($primary_local_tasks): ?> + <h2 class="element-invisible"><?php print t('Primary tabs'); ?></h2> + <ul class="tabs primary"><?php print render($primary_local_tasks); ?></ul> + <?php endif; ?> </div> <div id="page"> - <?php if ($secondary_local_tasks): ?><ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul><?php endif; ?> + <?php if ($secondary_local_tasks): ?> + <h2 class="element-invisible"><?php print t('Secondary tabs'); ?></h2> + <ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul> + <?php endif; ?> <div id="content" class="clearfix"> <?php if ($messages): ?>