Closed dchaffin closed 5 years ago
In @atoms/_field.twig, I see:
<div{{ attributes }}>
But I can't tell that it's doing anything. I want to add a class to that. Is this the correct way?
{% include "@atoms/_field.twig" with { attributes: { '#class': 'field--image' } } %}
Thanks!
Hello.
I don't know if it's correct but you can use this:
{% include "@atoms/_field.twig" with { attributes: create_attribute({'class': ['test', 'test--red']}) } %}
@ctarres - Thanks! That worked!
In @atoms/_field.twig, I see:
<div{{ attributes }}>
But I can't tell that it's doing anything. I want to add a class to that. Is this the correct way?
Thanks!