diff --git a/core/includes/menu.inc b/core/includes/menu.inc
index 681bdbb..d578499 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('is-active');
+ $variables['is_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/html.html.twig b/core/modules/system/templates/html.html.twig
index a11c8a4..9478542 100644
--- a/core/modules/system/templates/html.html.twig
+++ b/core/modules/system/templates/html.html.twig
@@ -23,6 +23,7 @@
* - styles: Style tags necessary to import all necessary CSS files in the head.
* - scripts: Script tags necessary to load the JavaScript files and settings
* in the head.
+ * - db_offline: A flag indicating if the database is offline.
*
* @see template_preprocess_html()
*
diff --git a/core/modules/system/templates/menu-local-task.html.twig b/core/modules/system/templates/menu-local-task.html.twig
index 5939203..ec02a8d 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.
+ * - 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 --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/layout/html.html.twig b/core/themes/classy/templates/layout/html.html.twig
index 1bb0ac6..a7180c0 100644
--- a/core/themes/classy/templates/layout/html.html.twig
+++ b/core/themes/classy/templates/layout/html.html.twig
@@ -23,6 +23,7 @@
* - styles: Style tags necessary to import all necessary CSS files in the head.
* - scripts: Script tags necessary to load the JavaScript files and settings
* in the head.
+ * - db_offline: A flag indicating if the database is offline.
*
* @see template_preprocess_html()
*/
@@ -32,6 +33,7 @@
logged_in ? 'user-logged-in',
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
node_type ? 'node--type-' ~ node_type|clean_class,
+ db_offline ? 'db-offline'
]
%}
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..b855981 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.
+ * - 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
@@ -13,4 +14,4 @@
* @see template_preprocess_menu_local_task()
*/
#}
-
{{ link }}
+
{{ link }}