diff --git a/assets/js/code.js b/assets/js/code.js index 5e88694e..2a2c270c 100644 --- a/assets/js/code.js +++ b/assets/js/code.js @@ -6,6 +6,7 @@ function createCopyButton(highlightDiv) { const button = document.createElement("button"); button.className = "copy-button"; button.type = "button"; + button.ariaLabel = copyText; button.innerText = copyText; button.addEventListener("click", () => copyCodeToClipboard(button, highlightDiv)); addCopyButtonToDom(button, highlightDiv);