diff --git a/core/includes/menu.inc b/core/includes/menu.inc
index f754ecb..452e27b 100644
--- a/core/includes/menu.inc
+++ b/core/includes/menu.inc
@@ -34,7 +34,7 @@ function template_preprocess_menu_local_task(&$variables) {
$link_text = $link['title'];
if (!empty($variables['element']['#active'])) {
- $variables['attributes']['class'] = array('active');
+ $variables['active'] = TRUE;
// Add text to indicate active tab for non-visual users.
$active = SafeMarkup::format('@label', array('@label' => t('(active tab)')));
diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index 9220fe7..ee12a41 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -1192,7 +1192,6 @@ function template_preprocess_file_managed_file(&$variables) {
if (!empty($element['#attributes']['class'])) {
$variables['attributes']['class'] = (array) $element['#attributes']['class'];
}
- $variables['attributes']['class'][] = 'form-managed-file';
}
/**
diff --git a/core/modules/file/templates/file-managed-file.html.twig b/core/modules/file/templates/file-managed-file.html.twig
index 9a33ae1..7a87511 100644
--- a/core/modules/file/templates/file-managed-file.html.twig
+++ b/core/modules/file/templates/file-managed-file.html.twig
@@ -12,6 +12,6 @@
* @ingroup themeable
*/
#}
-
+
{{ element }}
diff --git a/core/modules/system/templates/menu-local-task.html.twig b/core/modules/system/templates/menu-local-task.html.twig
index 5939203..2a67339 100644
--- a/core/modules/system/templates/menu-local-task.html.twig
+++ b/core/modules/system/templates/menu-local-task.html.twig
@@ -5,6 +5,7 @@
*
* Available variables:
* - attributes: HTML attributes for the wrapper element.
+ * - 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 --git a/core/themes/classy/templates/content-edit/file-managed-file.html.twig b/core/themes/classy/templates/content-edit/file-managed-file.html.twig
index d7b9120..43739be 100644
--- a/core/themes/classy/templates/content-edit/file-managed-file.html.twig
+++ b/core/themes/classy/templates/content-edit/file-managed-file.html.twig
@@ -10,6 +10,6 @@
* @see template_preprocess_file_managed_file()
*/
#}
-
+
{{ element }}
diff --git a/core/themes/classy/templates/navigation/menu-local-task.html.twig b/core/themes/classy/templates/navigation/menu-local-task.html.twig
index 602ba62..66e3267 100644
--- a/core/themes/classy/templates/navigation/menu-local-task.html.twig
+++ b/core/themes/classy/templates/navigation/menu-local-task.html.twig
@@ -5,6 +5,7 @@
*
* Available variables:
* - attributes: HTML attributes for the wrapper element.
+ * - 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
@@ -13,4 +14,4 @@
* @see template_preprocess_menu_local_task()
*/
#}
-
{{ link }}
+
{{ link }}