Announce external link targets for screen readers - #131
Conversation
Explicitly notify screen reader users when external links open in a new tab/window by updating ARIA labels in IconLink and Social, and adding visually hidden text in SectionItemCard. Update unit tests to match new accessibility labels.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🎨 Palette: Accessibility enhancement for external links
💡 What
Explicitly notify screen reader users when external links open in a new tab/window across
IconLink(src/components/icon-link.tsx),Social(src/components/social.tsx), andSectionItemCard(src/components/section-item-card.tsx).🎯 Why
When users navigating with screen readers focus on external links (such as project links, publication links, social profile buttons, or experience cards), they were not informed that navigating the link would open a new tab. Providing
(opens in a new tab)notices follows WCAG guidelines and improves interface predictability.♿ Accessibility
aria-labelinIconLinkto${title} (opens in a new tab).aria-labelinSocialto${profile.name} (opens in a new tab).<span className="sr-only"> (opens in a new tab)</span>insideSectionItemCard's anchor element.src/components/components.test.tsxandsrc/components/publication.test.tsx.PR created automatically by Jules for task 9315154077565939008 started by @amrabed