Skip to content

fix: add accessible label to icon-only link - #96334

Open
niketchandivade wants to merge 1 commit into
vercel:canaryfrom
niketchandivade:fix/icon-link-accessibility
Open

fix: add accessible label to icon-only link#96334
niketchandivade wants to merge 1 commit into
vercel:canaryfrom
niketchandivade:fix/icon-link-accessibility

Conversation

@niketchandivade

Copy link
Copy Markdown
Contributor

Summary

This PR improves the accessibility of the Ant Design example by adding an accessible label to the icon-only Link.

Changes

  • Added aria-label="Home" to the icon-only link.

Why

The link currently renders only an icon, so it does not provide an accessible name for assistive technologies. Adding an aria-label makes its purpose clear to screen reader users without changing the visual appearance.

Before

Screen readers announce the element as an unlabeled link.

After

Screen readers announce the link as "Home".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant