Skip to content
Snippets Groups Projects
Unverified Commit 83200c49 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3178806 by kishor_kolekar, mherchel, larowlan, kostyashupenko,...

Issue #3178806 by kishor_kolekar, mherchel, larowlan, kostyashupenko, ayushmishra206: Node teaser should not hard-code the text-content CSS class in template
parent fdec5f52
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment