🎨 Palette: Improve navigation accessibility with aria-labels#4
🎨 Palette: Improve navigation accessibility with aria-labels#4
Conversation
Added `aria-label` to navigation links in `MobileNav` and `DashboardNav` to ensure screen readers can announce the purpose of the links, especially when they are icon-only (e.g., on mobile).
- `src/components/mobile-nav.tsx`: Added `aria-label={item.title}` to `Link`.
- `src/components/dashboard-nav.tsx`: Added `aria-label={item.label}` to `Button`.
Co-authored-by: vireapp <[email protected]>
|
👋 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. |
This PR improves accessibility by adding
aria-labelattributes to navigation links in bothMobileNavandDashboardNavcomponents.Why
Navigation links, especially on mobile, often display only icons. Without
aria-label, screen readers cannot announce the purpose of these links, making the app inaccessible to visually impaired users.What
src/components/mobile-nav.tsx, addedaria-labelusing theitem.titleproperty.src/components/dashboard-nav.tsx, addedaria-labelusing theitem.labelproperty.Verification
MobileNavusestitleandDashboardNavuseslabelfor the text content.npm run buildto ensure no build errors.npm run lintto ensure no new lint errors were introduced.PR created automatically by Jules for task 13229211839352632318 started by @vireapp