mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
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:
@@ -20,7 +20,6 @@ const {
|
||||
disabled ? (
|
||||
<span
|
||||
class:list={["group inline-block", className]}
|
||||
aria-label={ariaLabel}
|
||||
title={title}
|
||||
aria-disabled={disabled}
|
||||
>
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user