🎨 Palette: Accessible Form Controls and File Dropzone#68
🎨 Palette: Accessible Form Controls and File Dropzone#68
Conversation
- Add 'for' attributes to all settings form labels connecting them to their respective select fields. - Make the custom file dropzone fully keyboard accessible (tabindex, role, aria-label, enter/space keyboard triggers). - Map visual drag highlights to keyboard focus and blur states. - Ensure the translation progress bar has appropriate ARIA attributes (aria-live, aria-valuenow). - Log accessible dropzone pattern in palette journal. Co-authored-by: Nawayisus <154715157+Nawayisus@users.noreply.github.com>
|
👋 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 implements several micro-UX and accessibility improvements as the Palette persona.
💡 What:
Tabkey, visually highlights when focused, and can be triggered by pressingEnterorSpace.🎯 Why:
Custom interactive areas like
<div>dropzones are completely invisible to keyboard-only users and screen readers by default. By mapping proper ARIA roles, tabindex, and wiring up the existing visual highlight functions to thefocusandblurevents, we ensure all users can easily discover and use the primary action of the application without needing a mouse.♿ Accessibility:
forattributes to all form labels.tabindex="0",role="button", andaria-labelto#dropZone.focus/blurto visual highlight functions.keydownevent listener to trigger file input onEnterorSpacewhile preventing default scroll behaviors.aria-live="polite"andaria-valuenowupdates to#progressBar.A critical learning regarding the manual wiring required for custom accessible dropzones has been logged to
.Jules/palette.md.PR created automatically by Jules for task 15269096028294885989 started by @Nawayisus