Skip to content

Commit 38703d1

Browse files
fix: Improve accessibility for links without accessible labels (#1972) (#1973)
# Overview This PR improves accessibility for links used in the `FeatureGrid` component by adding accessible labels (`aria-label`) to unlabeled links. This helps screen reader users navigate links more effectively and resolves accessibility audit warnings related to missing accessible names. ## PR Checklist * [x] I did below actions if need 1. I read the [[Contributing Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md) 2. I added documents and tests.
1 parent 03f67ee commit 38703d1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/suspensive.org/src/components/FeatureGrid.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ function FeatureCard({
214214
ease: 'linear',
215215
}}
216216
/>
217-
<Link href={item.href} className="absolute inset-0 z-10" />
217+
<Link
218+
href={item.href}
219+
aria-label={item.title}
220+
className="absolute inset-0 z-10"
221+
/>
218222
<h3 className="mb-2 font-mono text-sm font-semibold tracking-tight">
219223
{item.title}
220224
</h3>

0 commit comments

Comments
 (0)