Accessibility fix aria link (#10944)

This commit is contained in:
Ihor Sychevskyi 2022-02-20 10:53:44 +02:00 committed by GitHub
parent ed40a80757
commit d33e925440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ function handleLinks(): void {
anchor.className = "self-link";
anchor.href = "#" + node.id;
anchor.setAttribute("aria-hidden", "true");
anchor.setAttribute("tabindex", "-1");
anchor.innerHTML = "<svg class='icon'><use xlink:href='" + iconFile + "#links'/></svg>";
node.appendChild(anchor);