Skip to content

Commit

Permalink
Merge pull request #433 from yalesites-org/YALB-email-copy-change-to-…
Browse files Browse the repository at this point in the history
…button

fix(YALB-email-copy-change-to-button): update component to use for em…
  • Loading branch information
nJim authored Sep 21, 2023
2 parents 277564f + 3019517 commit a0e84f3
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@

{% 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'],
{{ attach_library('atomic/text-copy-button') }}
{% embed '@atoms/controls/text-copy-button/yds-text-copy-button.twig' with {
text_copy_button__pre_text: email,
text_copy_button__content: '(copy)',
} %}
{% endembed %}
<br>
{% endif %}

{% if phone %}

{{ attach_library('atomic/text-link') }}
{% embed '@atoms/controls/text-link/yds-text-link.twig' with {
link__url: 'tel:' ~ phone,
link__content: phone,
Expand Down

0 comments on commit a0e84f3

Please sign in to comment.