fix(a11y): remove aria-labels from non-interactive elements (#346)

Remove aria-label from `<h1>` of 404 page and disabled LinkButton.

Resolves #263
This commit is contained in:
Sat Naing
2024-08-04 14:50:31 +07:00
committed by GitHub
parent be172efa17
commit 8762650c60
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -20,7 +20,6 @@ const {
disabled ? (
<span
class:list={["group inline-block", className]}
aria-label={ariaLabel}
title={title}
aria-disabled={disabled}
>
+1 -1
View File
@@ -11,7 +11,7 @@ import LinkButton from "@components/LinkButton.astro";
<main id="main-content">
<div class="not-found-wrapper">
<h1 aria-label="404 Not Found">404</h1>
<h1>404</h1>
<span aria-hidden="true">¯\_(ツ)_/¯</span>
<p>Page Not Found</p>
<LinkButton