Skip to content
Snippets Groups Projects

Issue #3262808: Add space between tab title and the '(active tab)' indicator

7 files
+ 15
15
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 1
1
@@ -1897,7 +1897,7 @@ function template_preprocess_menu_local_task(&$variables) {
// Add text to indicate active tab for non-visual users.
$active = new FormattableMarkup('<span class="visually-hidden">@label</span>', ['@label' => t('(active tab)')]);
$link_text = t('@local-task-title@active', ['@local-task-title' => $link_text, '@active' => $active]);
$link_text = t('@local-task-title @active', ['@local-task-title' => $link_text, '@active' => $active]);
}
$link['localized_options']['set_active_class'] = TRUE;
Loading