Skip to content

Conversation

@huangkevin-apr
Copy link

Closes #4777

Fix repeated accessible name caused by image alt text duplicating visible link text.

This change treats decorative images inside interactive cards as presentational when the link already contains sufficient visible text, preventing screen readers from announcing the same link text twice.

Changelog

Changed

  • Mark homepage card images as decorative by removing their alt text when the surrounding link already provides a clear accessible name.
  • Prevent redundant accessible name computation for interactive cards containing both text and images.
diff --git a/src/pages/index.mdx b/src/pages/index.mdx
index f640955a0..06bab0d5d 100755
--- a/src/pages/index.mdx
+++ b/src/pages/index.mdx
@@ -13,7 +13,7 @@ export default HomepageTemplate;
       iconColor="dark"
       >
 
-![Design](/homepage/images/homepage-design.png)
+![](/homepage/images/homepage-design.png)
 
   </ImageCard>
 </Column>
@@ -27,7 +27,7 @@ export default HomepageTemplate;
       iconColor="dark"
       >
 
-![Develop](/homepage/images/homepage-develop.png)
+![](/homepage/images/homepage-develop.png)
 
   </ImageCard>
 </Column>
@@ -41,7 +41,7 @@ export default HomepageTemplate;
       iconColor="dark"
       >
 
-![Migrate](/homepage/images/homepage-migration.png)
+![](/homepage/images/homepage-migration.png)
 
   </ImageCard>
 </Column>

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

DCO Assistant Lite bot: Thanks for your submission! We ask that you all sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


I have read the DCO document and I hereby sign the DCO.


1 out of 2 committers have signed the DCO.
@annawen1
@huangkevin-apr
You can retrigger this bot by commenting recheck in this Pull Request

@huangkevin-apr
Copy link
Author

DCO Assistant Lite bot: Thanks for your submission! We ask that you all sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:

I have read the DCO document and I hereby sign the DCO.

1 out of 2 committers have signed the DCO.✅ @annawen1❌ @huangkevin-aprYou can retrigger this bot by commenting recheck in this Pull Request

recheck
I have read the DCO document and I hereby sign the DCO.

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.

[a11y]: Link text is repeated in an image 'alt' value within the same link

3 participants