Skip to content

Commit

Permalink
fix(yalb-85): update block to wrap content in block-wrapper with bloc…
Browse files Browse the repository at this point in the history
…k_wrapper__label
  • Loading branch information
joetower committed Jul 26, 2023
1 parent 6877231 commit 3c2485f
Showing 1 changed file with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@


{% embed '@atoms/typography/headings/yds-heading.twig' with {
heading: 'Contact Info',
heading__level: '3',
{% embed "@organisms/block-wrapper/yds-block-wrapper.twig" with {
block_wrapper__label: 'Contact Info',
block_wrapper__heading__level: '3'
} %}
{% endembed %}

{% if email %}

{{ attach_library('atomic/text-link') }}
{% embed '@atoms/controls/text-link/yds-text-link.twig' with {
link__url: '',
link__pre_text: email,
link__content: '(copy)',
link__type: 'email',
link__extra_class: ['copy-trigger'],
} %}

{% endembed %}
{% block block_wrapper__inner %}

{% if email %}

{{ attach_library('atomic/text-link') }}
{% embed '@atoms/controls/text-link/yds-text-link.twig' with {
link__url: '',
link__pre_text: email,
link__content: '(copy)',
link__type: 'email',
link__extra_class: ['copy-trigger'],
} %}
{% endembed %}
<br>
{% endif %}

{% endif %}
{% if phone %}

{% if phone %}
{% embed '@atoms/controls/text-link/yds-text-link.twig' with {
link__url: 'tel:' ~ phone,
link__content: phone,
} %}
{% endembed %}
{% endif %}

{% embed '@atoms/controls/text-link/yds-text-link.twig' with {
link__url: 'tel:' ~ phone,
link__content: phone,
} %}
{% if address %}

{% endembed %}
{% set address %}
<br>
{{ address.address_line1 }}<br>
{{ address.address_line2 }}<br>
{% if address.locality %}
{{ address.locality }},
{% endif %}
{{ address.administrative_area }} {{ address.postal_code }}
{% endset %}

{% endif %}
{% embed '@molecules/text/yds-text-field.twig' with {
text_field__content: address,
text_field__alignment: 'left'
} %}

{% if address %}
{% endembed %}

{% set address %}
{{ address.address_line1 }}<br>
{{ address.address_line2 }}<br>
{% if address.locality %}
{{ address.locality }},
{% endif %}
{{ address.administrative_area }} {{ address.postal_code }}
{% endset %}

{% embed '@molecules/text/yds-text-field.twig' with {
text_field__content: address,
text_field__alignment: 'left'
} %}

{% endblock %}
{% endembed %}

{% endif %}

0 comments on commit 3c2485f

Please sign in to comment.