From 40e5a9207803fd7b0d44c9e8314ba8f255a5760a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 7 Jun 2021 14:15:32 +0200 Subject: [PATCH] Add tags to icons --- static/kx-key.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/kx-key.js b/static/kx-key.js index a4b8cb5..3c8c6db 100644 --- a/static/kx-key.js +++ b/static/kx-key.js @@ -28,6 +28,8 @@ class Key extends HTMLElement { subsection_links.setAttribute('class', 'subsection'); const subsection_links_icon = subsection_links.appendChild(document.createElement('img')); subsection_links_icon.setAttribute('src', '/static/img/link.png'); + subsection_links_icon.setAttribute('alt', ''); + subsection_links_icon.setAttribute('aria-hidden', 'true'); const subsection_links_text = subsection_links.appendChild(document.createElement('div')); const profile_link = subsection_links_text.appendChild(document.createElement('p')); @@ -40,6 +42,8 @@ class Key extends HTMLElement { subsection_qr.setAttribute('class', 'subsection'); const subsection_qr_icon = subsection_qr.appendChild(document.createElement('img')); subsection_qr_icon.setAttribute('src', '/static/img/qrcode.png'); + subsection_qr_icon.setAttribute('alt', ''); + subsection_qr_icon.setAttribute('aria-hidden', 'true'); const subsection_qr_text = subsection_qr.appendChild(document.createElement('div')); const button_profileQR = subsection_qr_text.appendChild(document.createElement('button'));