Skip to content
Snippets Groups Projects
Commit 2bc6ca66 authored by Thomas Frobieter's avatar Thomas Frobieter
Browse files

Paragraph type entity reference >> Added a prefix to the entity type class,...

Paragraph type entity reference >> Added a prefix to the entity type class, otherwise this will cause problems eg. for "card", the .paragraph-wrapper gets a card class, also the rendered entities layout has a "card" class, so we got .card inside .card.
parent e729d115
No related branches found
Tags 8.x-2.18
No related merge requests found
......@@ -58,7 +58,7 @@
{%
set classes = [
'paragraph',
rendercontent.field_paragraphs_nodeentityref.0 ? rendercontent.field_paragraphs_nodeentityref.0['#view_mode']|clean_class,
rendercontent.field_paragraphs_nodeentityref.0 ? 'paragraph--entity-view-mode-' ~ rendercontent.field_paragraphs_nodeentityref.0['#view_mode']|clean_class,
'paragraph--type-' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
]
......
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