From 83200c4927ad2423909903787409db63d6a15330 Mon Sep 17 00:00:00 2001
From: Lauri Eskola <lauri.eskola@acquia.com>
Date: Thu, 29 Oct 2020 15:03:19 +0200
Subject: [PATCH] Issue #3178806 by kishor_kolekar, mherchel, larowlan,
 kostyashupenko, ayushmishra206: Node teaser should not hard-code the
 text-content CSS class in template

---
 .../templates/content/node--teaser.html.twig     | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/core/themes/olivero/templates/content/node--teaser.html.twig b/core/themes/olivero/templates/content/node--teaser.html.twig
index 67fc8285a2eb..8720f2f473ab 100644
--- a/core/themes/olivero/templates/content/node--teaser.html.twig
+++ b/core/themes/olivero/templates/content/node--teaser.html.twig
@@ -69,13 +69,13 @@
 
 {%
   set classes = [
-  'node',
-  'node--type-' ~ node.bundle|clean_class,
-  node.isPromoted() ? 'node--promoted',
-  node.isSticky() ? 'node--sticky',
-  not node.isPublished() ? 'node--unpublished',
-  view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
-]
+    'node',
+    'node--type-' ~ node.bundle|clean_class,
+    node.isPromoted() ? 'node--promoted',
+    node.isSticky() ? 'node--sticky',
+    not node.isPublished() ? 'node--unpublished',
+    view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
+  ]
 %}
 
 <article{{ attributes.addClass(classes) }}>
@@ -99,7 +99,7 @@
       </div>
     {% endif %}
   </header>
-  <div{{ content_attributes.addClass('node__content', layout, 'text-content') }}>
+  <div{{ content_attributes.addClass('node__content') }}>
     {{ content|without('field_image', 'links') }}
   </div>
 </article>
-- 
GitLab