Skip to content

🎨 Palette: Improve Accessibility and Drop Zone Keyboard Interaction#52

Draft
Nawayisus wants to merge 1 commit intomainfrom
palette-ux-improvements-1452287931130402130
Draft

🎨 Palette: Improve Accessibility and Drop Zone Keyboard Interaction#52
Nawayisus wants to merge 1 commit intomainfrom
palette-ux-improvements-1452287931130402130

Conversation

@Nawayisus
Copy link
Copy Markdown
Owner

🎨 Palette: Enhance Accessibility and Micro-UX

💡 What:

  • Linked form labels to their inputs using for attributes.
  • Added dynamic ARIA roles and states to the progress bar (aria-live, aria-valuenow).
  • Made the file drag-and-drop zone (#dropZone) keyboard accessible (tabindex="0", role="button") and actionable via 'Enter'/'Space'.

🎯 Why:
Screen readers will now properly announce input selections and dynamic progress updates. Users who rely on keyboard navigation can now easily upload files by tabbing to the drop zone and pressing Enter or Space, avoiding the need for a mouse.

Accessibility:

  • Resolved orphaned labels.
  • Added keyboard interaction for the custom upload area.
  • Added screen-reader feedback for async processes.

PR created automatically by Jules for task 1452287931130402130 started by @Nawayisus

…ibility

- Added `for` attributes to form labels in `index.php` linking them to their corresponding `<select>` inputs.
- Enhanced `#progressArea` and `.progress-bar` with dynamic `aria-live`, `aria-atomic`, and `aria-valuenow` attributes for better screen reader announcements.
- Made `#dropZone` fully keyboard navigable by adding `tabindex="0"`, `role="button"`, and explicit `click` and `keydown` (Enter/Space) event listeners in `js/app.js` that handle nested button bubbling.

Co-authored-by: Nawayisus <154715157+Nawayisus@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant