Do classes for section separately
This commit is contained in:
parent
c87ebdc0c5
commit
bb3305e14a
1 changed files with 4 additions and 4 deletions
|
@ -53,10 +53,10 @@
|
|||
{% for style in paragraph.field_style_classes %}
|
||||
{% set styles = styles|merge([style.value]) %}
|
||||
{% endfor %}
|
||||
{% set classes = classes|merge([ 'hero', 'section-restitch' ]) %}
|
||||
{% set classes = classes|merge(styles) %}
|
||||
{% set attributes = attributes.removeClass('section').addClass(classes).setAttribute('data-headerbg', 'light') %}
|
||||
<section attributes>
|
||||
{% set section_classes = [ 'hero', 'section-restitch' ] %}
|
||||
{% set section_classes = section_classes|merge(styles) %}
|
||||
{% set section_attributes = create_attribute().addClass(section_classes).setAttribute('data-headerbg', 'light') %}
|
||||
<section {{ section_attributes }}>
|
||||
{% endif %}
|
||||
{% block paragraph %}
|
||||
<div{{ attributes.addClass(classes) }}>
|
||||
|
|
Loading…
Reference in a new issue