diff -u b/core/includes/menu.inc b/core/includes/menu.inc --- b/core/includes/menu.inc +++ b/core/includes/menu.inc @@ -34,7 +34,7 @@ $link_text = $link['title']; if (!empty($variables['element']['#active'])) { - $variables['is-active'] = TRUE; + $variables['is_active'] = TRUE; // Add text to indicate active tab for non-visual users. $active = SafeMarkup::format('@label', array('@label' => t('(active tab)'))); diff -u b/core/modules/system/templates/menu-local-task.html.twig b/core/modules/system/templates/menu-local-task.html.twig --- b/core/modules/system/templates/menu-local-task.html.twig +++ b/core/modules/system/templates/menu-local-task.html.twig @@ -5,7 +5,7 @@ * * Available variables: * - attributes: HTML attributes for the wrapper element. - * - active: Whether the task item is an active tab. + * - is_active: Whether the task item is an active tab. * - link: A rendered link element. * * Note: This template renders the content for each task item in diff -u b/core/themes/classy/templates/navigation/menu-local-task.html.twig b/core/themes/classy/templates/navigation/menu-local-task.html.twig --- b/core/themes/classy/templates/navigation/menu-local-task.html.twig +++ b/core/themes/classy/templates/navigation/menu-local-task.html.twig @@ -5,7 +5,7 @@ * * Available variables: * - attributes: HTML attributes for the wrapper element. - * - is-active: Whether the task item is an active tab. + * - is_active: Whether the task item is an active tab. * - link: A rendered link element. * * Note: This template renders the content for each task item in @@ -17 +17 @@ -