Repository navigation
fix(demo): add alt text to card and profile images #768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -33,6 +33,7 @@ const FeedCard: React.FC<FeedCardProps> = ({ | |||||
| <div className={css.thumbnail}> | ||||||
| <LazyLoadImage | ||||||
| src={imageUrl} | ||||||
| alt={title} | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Avoid repeating the title in the button name. The image and visible title are both inside the button. Suggested change--- "a/demo/src/components/FeedCard.tsx"
+++ "b/demo/src/components/FeedCard.tsx"
@@ -33,7 +33,7 @@
<div className={css.thumbnail}>
<LazyLoadImage
src={imageUrl}
- alt={title}
+ alt=""
effect="opacity"
width={108}
height={108}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| effect="opacity" | ||||||
| width={108} | ||||||
| height={108} | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Avoid repeating the title in the link name.
The image and visible title are both inside the
Link.alt={title}repeats the title in the link's accessible name. Usealt=""if the thumbnail is redundant, or provide a distinct description if the image conveys information.Suggested change
📝 Committable suggestion
🤖 Prompt for AI Agents