Skip to content
Header
(function () { const observer = new MutationObserver((mutations) => { const buttons = document.querySelectorAll("button"); try { buttons.forEach((button) => { const existingAriaLabel = button.getAttribute("aria-label"); if (existingAriaLabel && existingAriaLabel.trim() !== "") { return; } const buttonId = button.getAttribute("id"); const buttonClass = button.getAttribute("class")?.split(" ")[0]; const dataQa = button.getAttribute("data-qa"); const buttonText = button.textContent?.trim(); if (existingAriaLabel && existingAriaLabel.trim() === "") { return; } let ariaLabel = ""; if (buttonId) { ariaLabel = buttonId; } else if (buttonClass) { ariaLabel = buttonClass; } else if (dataQa) { ariaLabel = dataQa; } else if (buttonText) { ariaLabel = buttonText; } else { ariaLabel = "Button"; } button.setAttribute("aria-label", ariaLabel); }); //console.log('Accessibility labels added to buttons'); } catch (error) { //console.error('Error processing buttons:', error); } }); observer.observe(document, { childList: true, subtree: true }); })();
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
You are on the main content
×