mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +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 ? (
|
disabled ? (
|
||||||
<span
|
<span
|
||||||
class:list={["group inline-block", className]}
|
class:list={["group inline-block", className]}
|
||||||
aria-label={ariaLabel}
|
|
||||||
title={title}
|
title={title}
|
||||||
aria-disabled={disabled}
|
aria-disabled={disabled}
|
||||||
>
|
>
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ import LinkButton from "@components/LinkButton.astro";
|
|||||||
|
|
||||||
<main id="main-content">
|
<main id="main-content">
|
||||||
<div class="not-found-wrapper">
|
<div class="not-found-wrapper">
|
||||||
<h1 aria-label="404 Not Found">404</h1>
|
<h1>404</h1>
|
||||||
<span aria-hidden="true">¯\_(ツ)_/¯</span>
|
<span aria-hidden="true">¯\_(ツ)_/¯</span>
|
||||||
<p>Page Not Found</p>
|
<p>Page Not Found</p>
|
||||||
<LinkButton
|
<LinkButton
|
||||||
|
|||||||
Reference in New Issue
Block a user