From 334c896b0b3bc574fee7812eee2fa8483c126ae6 Mon Sep 17 00:00:00 2001 From: Johan Smits Date: Thu, 15 Sep 2022 14:13:55 +0200 Subject: [PATCH] Add aria label for the start button. Lighthouse suggestion. --- src/parent/load.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parent/load.ts b/src/parent/load.ts index 29a7d18..fdf3eed 100644 --- a/src/parent/load.ts +++ b/src/parent/load.ts @@ -40,6 +40,7 @@ export function loadStartButton() { function createStartButton() { const button = document.createElement("button"); button.className = "start-chat-btn"; + button.setAttribute('aria-label', 'Start chat'); button.onclick = () => (window as any).isIframeLoaded? toggleIframe() : loadIframe(); button.appendChild(createNotificationBadge()); return button;