<commit_before><?php // @codingStandardsIgnoreFile ?>
<?php
$_product = $block->getProduct();
$helper = $this->helper('Magento\Catalog\Helper\Product');
?>

<?php if ($block->canEmailToFriend()): ?>
    <a
        href="<?= $helper->getEmailToFriendUrl($_product) ?>"
        class="
            button 
            button--icon 
            product-view__button
        "
        data-testid="product-email-friend-link"
    >
        <svg class="icon product-view__icon-envelope">
            <use xlink:href="<?= $block->escapeUrl($block->getViewFileUrl('images/icons-sprite.svg#envelope')); ?>"></use>
        </svg>
        <span class="button__text">
            <?= $block->escapeHtml(__('Email')) ?>
        </span>
    </a>
<?php endif; ?><commit_msg>66029 fix email to a friend link a11y issue<commit_after><?php // @codingStandardsIgnoreFile ?>
<?php
$_product = $block->getProduct();
$helper = $this->helper('Magento\Catalog\Helper\Product');
?>

<?php if ($block->canEmailToFriend()): ?>
    <a
        href="<?= $helper->getEmailToFriendUrl($_product) ?>"
        class="
            button
            button--icon
            product-view__button
        "
        data-testid="product-email-friend-link"
        aria-label="<?= $block->escapeHtml(__('Send email to a friend to share this product')) ?>"
    >
        <svg
            class="
                icon
                product-view__icon-envelope
            "
            role="presentation"
            focusable="false"
        >
            <use xlink:href="<?= $block->escapeUrl($block->getViewFileUrl('images/icons-sprite.svg#envelope')); ?>"></use>
        </svg>
        <span class="button__text">
            <?= $block->escapeHtml(__('Email to a friend')) ?>
        </span>
    </a>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.1780515117581187, 'fraction_numerical': 0.003919372900335946, 'mean_word_length': 2.272893772893773, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2362551', 'n_tokens_mistral': 532, 'n_tokens_neox': 529, 'n_words': 90}