diff --git a/libs/utils/image-video-link.js b/libs/utils/image-video-link.js index c3295c7209..ef3ac90976 100644 --- a/libs/utils/image-video-link.js +++ b/libs/utils/image-video-link.js @@ -12,11 +12,12 @@ export default function init(el, a, btnFormat) { const playBtnFormat = btnFormat.split(':')[1]; const btnSize = playBtnFormat.includes('-') ? `btn-${playBtnFormat.split('-')[1]}` : 'btn-large'; const pic = el.querySelector('picture'); - const playIcon = createTag('div', { class: 'play-icon-container', 'aria-label': 'play', role: 'button' }, PLAY_ICON_SVG); + const playIcon = createTag('div', { class: 'play-icon-container' }, PLAY_ICON_SVG); const imgLinkContainer = createTag('span', { class: 'modal-img-link' }); el.insertBefore(imgLinkContainer, pic); if (btnSize) a.classList.add(btnSize); a.classList.add('consonant-play-btn'); + a.setAttribute('aria-label', 'play'); a.append(playIcon); imgLinkContainer.append(pic, a); }