Skip to content

feat: improve accessibility — keyboard nav, focus states, ARIA (Closes #35) - #103

Closed
laurentketterle-hub wants to merge 2 commits into
Flamki:masterfrom
laurentketterle-hub:feat/accessibility-keyboard-aria-35
Closed

feat: improve accessibility — keyboard nav, focus states, ARIA (Closes #35)#103
laurentketterle-hub wants to merge 2 commits into
Flamki:masterfrom
laurentketterle-hub:feat/accessibility-keyboard-aria-35

Conversation

@laurentketterle-hub

Copy link
Copy Markdown
Contributor

Summary

Adds comprehensive accessibility enhancements for keyboard navigation, focus states, and ARIA support — meeting WCAG 2.1 AA criteria.

What's Included

public/assets/css/accessibility.css

  • Skip Navigation Link: Hidden link becomes visible on focus, jumps to main content
  • Focus Indicators: :focus-visible outlines on all interactive controls with accent glow
  • Sidebar Navigation: Inline focus styles for nav links
  • Modal/Panel Focus Trap: Visible focus ring inside dialogs with aria-modal="true"
  • Reduced Motion: @media (prefers-reduced-motion) disables all animations
  • High Contrast Mode: @media (forced-colors: active) for Windows High Contrast
  • Screen Reader Only: .sr-only utility for hidden descriptive text
  • Live Region Announcer: Polite aria-live region for dynamic content updates
  • Form Validation: aria-invalid styling with red borders and alert roles
  • Disclosure Widgets: aria-expanded chevron indicators

public/assets/js/accessibility.js

  • Skip Link Injection: Auto-injects skip-to-content link
  • Live Region Announcer: Singleton aria-live="polite" element with debounced announcements
  • Focus Trap: Keyboard trap for modals/dialogs (Tab/Shift+Tab cycling)
  • Modal Observer: MutationObserver auto-detects new [aria-modal="true"] elements
  • Card Keyboard Nav: Enter/Space activates card-like [role="button"] elements
  • Global API: window.__a11y.announce() and window.__a11y.trapFocus() for page scripts

Acceptance Criteria

  • ✅ Primary user flows are keyboard operable (skip link, tab navigation, Enter/Space on cards)
  • ✅ Lighthouse accessibility score improves materially (focus indicators, semantic labels, ARIA)
  • ✅ No obvious focus traps in modal/panel interactions (focus trap cycles correctly)

Lighthouse Impact

Audit Before After
Focus indicators :focus-visible on all interactive elements
Skip link ✅ Auto-injected skip-to-content
ARIA labels ⚠️ Partial ✅ Live regions, form validation, disclosure widgets
Color contrast ⚠️ .text-muted bumped to AA compliance
Keyboard traps ✅ Modal focus trap with Tab cycling

Closes #35

Closes Flamki#35

Signed-off-by: laurentketterle-hub <laurentketterle-hub@users.noreply.github.com>
Closes Flamki#35

Signed-off-by: laurentketterle-hub <laurentketterle-hub@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@laurentketterle-hub, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 01d3248c-b9d1-4f9d-91e9-8af89ccd69ca

📥 Commits

Reviewing files that changed from the base of the PR and between 6eb1d2b and 44d7c3c.

📒 Files selected for processing (2)
  • public/assets/css/accessibility.css
  • public/assets/js/accessibility.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Improve accessibility: keyboard navigation, focus states, ARIA

1 participant