Skip to content

sign in: fix keyboard accessibility for all buttons#586

Draft
star7js wants to merge 1 commit into
commaai:masterfrom
star7js:fix/sign-in-keyboard-accessibility
Draft

sign in: fix keyboard accessibility for all buttons#586
star7js wants to merge 1 commit into
commaai:masterfrom
star7js:fix/sign-in-keyboard-accessibility

Conversation

@star7js
Copy link
Copy Markdown

@star7js star7js commented Mar 28, 2026

Summary

  • Apple sign-in button used <a onClick> without href, making it unreachable via Tab key — added href="#" + role="button" + preventDefault
  • Added focus-visible outline styling to all sign-in buttons so keyboard users can see which one is focused
  • Google and GitHub buttons already used href and were unaffected

Note on the "Try the demo" button (#551)

The demo button is also <a onClick> without href, but it's rendered with style={{ height: 0, overflow: 'hidden', opacity: 0 }} — i.e. invisible. Making it keyboard-focusable would create a hidden tab stop, which is worse than the current state. The visibility itself looks like a separate bug (or dead code) and is left for a follow-up.

Partially addresses #551 (Apple button + focus styling). Demo button needs separate investigation.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 28, 2026

Welcome to connect! Make sure to:

  • read the contributing guidelines
  • mark your PR as a draft until it's ready to review
  • post the preview on Discord; feedback from users will speedup the PR review

deployed preview: https://586.connect-d5y.pages.dev

- Apple sign-in and demo buttons used <a onClick> without href, making
  them unreachable via Tab key. Added href="#" and role="button" with
  preventDefault so they're keyboard-focusable.
- Added focus-visible outline styling to sign-in buttons so keyboard
  users can see which button is focused.

Fixes commaai#551
@star7js star7js force-pushed the fix/sign-in-keyboard-accessibility branch from 6275b24 to de5eeda Compare May 5, 2026 07:04
@star7js star7js marked this pull request as draft May 5, 2026 07:06
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