Skip to content

refactor(a11y): improve accessibility, clean up nav and challenges#73

Merged
sinduri-g merged 2 commits into
mainfrom
refactor/a11y-cleanup-challenges-nav
May 28, 2026
Merged

refactor(a11y): improve accessibility, clean up nav and challenges#73
sinduri-g merged 2 commits into
mainfrom
refactor/a11y-cleanup-challenges-nav

Conversation

@sinduri-g
Copy link
Copy Markdown
Contributor

Key changes:

  • Add RouteAnnouncer in Layout.tsx so SPA navigations are announced to screen readers via a polite live region.
  • Upgrade Navbar mobile menu with focus trap (Tab wrapping, Escape to close, focus return to trigger), aria-hidden + inert on obscured content, and Challenges nav link now routes to /challenges instead of /#challenges.
  • Remove TechFilterSection, useActiveSection, and sonner (unused). Drop JetBrains Mono 500-weight font files (600 weight already served; 500 weight was a duplicate load).
  • Refactor ChallengesGrid: permanent sr-only aria-live region announces both filter-applied and filter-cleared states; add All pill; extract click handlers.
  • Refactor Challenges page: show all challenge levels by default (flat FilteredLevelCard grid) instead of AdventureCard grid; add All pill and permanent sr-only live region; fix URL construction to use BASE_URL; update page title to "Open Source Challenges".
  • RewardsCard: add deadlinePast prop; when deadline is past, replace eligibility text with a post-deadline message and Community Voices link (non-compact) or short pill note (compact). Move rewards card below leaderboard in this state.
  • Add isDeadlinePast utility in src/lib/utils.ts.
  • Add loader() exports to AdventureDetail and ChallengeDetail that compute rewardsBelowFold at build time.
  • ConsentBanner: switch aria-label to aria-labelledby on visible title paragraph; move initial focus to Decline button when banner appears.
  • MarkdownContent CodeBlock pre: add aria-label="Code block" so keyboard-focusable pre has an accessible name.
  • ChallengeDetail verification pre: add aria-label="Verification command".
  • Reduce firefly count from 12 to 8.
  • Add prefers-contrast and forced-colors media query blocks to index.css for OS-level accessibility.
  • Update Accessibility page, CLAUDE.md, styleguide.md, and smoke/unit/prerender tests to reflect all changes.

Key changes:

- Add RouteAnnouncer in Layout.tsx so SPA navigations are announced to screen readers via a polite live region.
- Upgrade Navbar mobile menu with focus trap (Tab wrapping, Escape to close, focus return to trigger), aria-hidden + inert on obscured content, and Challenges nav link now routes to /challenges instead of /#challenges.
- Remove TechFilterSection, useActiveSection, and sonner (unused). Drop JetBrains Mono 500-weight font files (600 weight already served; 500 weight was a duplicate load).
- Refactor ChallengesGrid: permanent sr-only aria-live region announces both filter-applied and filter-cleared states; add All pill; extract click handlers.
- Refactor Challenges page: show all challenge levels by default (flat FilteredLevelCard grid) instead of AdventureCard grid; add All pill and permanent sr-only live region; fix URL construction to use BASE_URL; update page title to "Open Source Challenges".
- RewardsCard: add deadlinePast prop; when deadline is past, replace eligibility text with a post-deadline message and Community Voices link (non-compact) or short pill note (compact). Move rewards card below leaderboard in this state.
- Add isDeadlinePast utility in src/lib/utils.ts.
- Add loader() exports to AdventureDetail and ChallengeDetail that compute rewardsBelowFold at build time.
- ConsentBanner: switch aria-label to aria-labelledby on visible title paragraph; move initial focus to Decline button when banner appears.
- MarkdownContent CodeBlock pre: add aria-label="Code block" so keyboard-focusable pre has an accessible name.
- ChallengeDetail verification pre: add aria-label="Verification command".
- Reduce firefly count from 12 to 8.
- Add prefers-contrast and forced-colors media query blocks to index.css for OS-level accessibility.
- Update Accessibility page, CLAUDE.md, styleguide.md, and smoke/unit/prerender tests to reflect all changes.

Signed-off-by: Sinduri Guntupalli <sinduri.guntupalli@dynatrace.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-28 10:31 UTC

- Expand ACCESSIBILITY.md into a full contributor checklist covering color contrast, focus rings, keyboard nav, touch targets, motion, semantic HTML, images, ARIA, forms, skip nav, and Windows High Contrast Mode; add WCAG principle reference table
- Add PERFORMANCE.md with Lighthouse targets (95 target, current 93, floor 93), image, font, bundle, and motion guidance
- Add Accessibility section to CLAUDE.md pointing to ACCESSIBILITY.md; remove duplicate ruleset
- Remove nonexistent src/utils/ from CLAUDE.md repo layout; add missing workflow files and commands
- Update docs-ext-link usage list in CLAUDE.md and styleguide.md (CommunitySidebar, RewardsCard, Accessibility, Privacy)
- Update styleguide.md: remove useActiveSection docs, update LeaderboardRow shape (singlePoints), update Lighthouse scores table, fix RR version ref, update CommunityLeaders and buildPageMeta descriptions
- Fix Accessibility.tsx contributor link to point to ACCESSIBILITY.md instead of CLAUDE.md
- Update README.md shadcn/ui description to reflect minimal component surface

Signed-off-by: Sinduri Guntupalli <sinduri.guntupalli@dynatrace.com>
@sinduri-g sinduri-g merged commit f24d332 into main May 28, 2026
2 checks passed
@sinduri-g sinduri-g deleted the refactor/a11y-cleanup-challenges-nav branch May 28, 2026 10:31
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