Skip to content

Remove repeated text#4784

Merged
alisonjoseph merged 8 commits intocarbon-design-system:mainfrom
huangkevin-apr:remove-repeated-text
Jan 22, 2026
Merged

Remove repeated text#4784
alisonjoseph merged 8 commits intocarbon-design-system:mainfrom
huangkevin-apr:remove-repeated-text

Conversation

@huangkevin-apr
Copy link
Copy Markdown
Contributor

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>

huangkevin-apr and others added 5 commits December 31, 2025 12:04
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 7, 2026

DCO Assistant Lite bot All contributors have signed the DCO.

@huangkevin-apr
Copy link
Copy Markdown
Contributor 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.

@alisonjoseph
Copy link
Copy Markdown
Contributor

recheck

@huangkevin-apr
Copy link
Copy Markdown
Contributor Author

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

@huangkevin-apr
Copy link
Copy Markdown
Contributor Author

recheck

@alisonjoseph alisonjoseph merged commit 49333ce into carbon-design-system:main Jan 22, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

4 participants