Skip to content

🎨 Palette: Accessibility improvements for form and file upload#54

Draft
Nawayisus wants to merge 1 commit intomainfrom
palette/ux-a11y-improvements-7206830020278289544
Draft

🎨 Palette: Accessibility improvements for form and file upload#54
Nawayisus wants to merge 1 commit intomainfrom
palette/ux-a11y-improvements-7206830020278289544

Conversation

@Nawayisus
Copy link
Copy Markdown
Owner

💡 What: Added keyboard accessibility to the file dropzone and improved screen reader support for form inputs and the progress bar.
🎯 Why: To ensure users relying on keyboards or screen readers can interact with the form properly, trigger file uploads without a mouse, and be notified of translation progress.
Accessibility:

  • Added for attributes to form labels.
  • Made the #dropZone focusable (tabindex="0") and semantically a button (role="button").
  • Added click and keydown event listeners to #dropZone for triggering file selection.
  • Added aria-live="polite" to #progressArea and dynamic aria-valuenow updates to #progressBar.

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

… reader support

- Add `for` attributes to all form labels linking to select inputs
- Add `tabindex="0"` and `role="button"` to `#dropZone` for keyboard focus
- Add `keydown` and `click` event listeners to `#dropZone` to allow triggering the file input via keyboard (`Enter`/`Space`) and mouse
- Add `aria-live="polite"` to the progress area for dynamic screen reader updates
- Add `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` to the progress bar, updated dynamically in JS

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