diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/templates/ys-profile-contact-block.html.twig b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/templates/ys-profile-contact-block.html.twig index a696391c83..c3a6a6f77c 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/templates/ys-profile-contact-block.html.twig +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/templates/ys-profile-contact-block.html.twig @@ -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 %}
{% 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,