Skip to content

🎨 Palette: Enhance keyboard accessibility for interactive elements in Signup - #73

Open
AntonioCardenas wants to merge 1 commit into
mainfrom
palette-signup-a11y-13411818023269512067
Open

🎨 Palette: Enhance keyboard accessibility for interactive elements in Signup#73
AntonioCardenas wants to merge 1 commit into
mainfrom
palette-signup-a11y-13411818023269512067

Conversation

@AntonioCardenas

Copy link
Copy Markdown
Collaborator

💡 What

Added keyboard accessibility, ARIA roles, and visible focus states to the avatar image upload trigger and the Farmer/Company tabs in the Signup flow. Also fixed an HTML issue where both tabs shared the same id.

🎯 Why

Previously, the avatar image upload and the signup tabs were only interactive via mouse clicks (onClick). Keyboard and screen reader users had no way of knowing these elements were interactive or navigating to them. This change ensures everyone can use the signup flow regardless of input device.

📸 Before/After

Before:

  • Avatar upload <img onClick> was skipped by keyboard navigation.
  • Tabs <a> had onClick but no href, making them un-focusable. Screen readers announced them as text, not tabs.
  • No visual feedback when navigating via keyboard.

After:

  • Both elements can receive focus (tabIndex={0}) and be activated via Enter or Space.
  • Keyboard users see a clear blue focus ring (focus-visible:ring-2 focus-visible:ring-blue-500).
  • Screen readers announce the elements correctly as "Upload image button" and "tab".

♿ Accessibility

  • Added role="button" and aria-label to the avatar upload.
  • Added role="tablist" to the tabs container.
  • Added role="tab" and dynamic aria-selected to the individual tabs.
  • Ensured focus indicators are only shown for keyboard users using Tailwind's focus-visible.

PR created automatically by Jules for task 13411818023269512067 started by @AntonioCardenas

… Signup

- Added keyboard support (Space/Enter) and ARIA attributes (role="button", aria-label) to the avatar upload image.
- Added keyboard support, ARIA tab roles, and aria-selected states to the Farmer/Company signup tabs.
- Replaced duplicate `id="signup-tabs"` with unique IDs.
- Added `focus-visible` styling for clear keyboard focus indicators on both elements.

Co-authored-by: AntonioCardenas <11583391+AntonioCardenas@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.

@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for heartfelt-swan-19c038 ready!

Name Link
🔨 Latest commit 0265891
🔍 Latest deploy log https://app.netlify.com/projects/heartfelt-swan-19c038/deploys/6a7df580b3bad600081f1a98
😎 Deploy Preview https://deploy-preview-73--heartfelt-swan-19c038.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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