I have a paragraph type called "Grid Item".
I've created a file called "paragraph--grid-item--default.html.twig" where I print all my required fields.
It all works as expected, but I need to add classes (from some list fields) to the element "field--item". I can add classes in any other children of this element but on directly on it.
This is the current output I have:
This is the code I'm using in the template:
{% block paragraph %}
<div class="{{ content.field_block_size.0 }} {{ content.field_block_style.0 }} ">
<div class="heading"> {{content.field_image.0}}
{{content.field_block_title.0}}
</div>
<div class="card-body"> {{content.field_body.0}}</div>
<p>
{{content. field_read_more_link.0}}
</p>
</div>
{% endblock paragraph %}
The classes content.field_block_size.0 and content.field_block_style.0 are applied as expected but I need them on the parent element...field--item