Skip to content

feat: accessibility and theming improvements - #145

Merged
therealsama merged 1 commit into
mainfrom
feat/accessibility
Jun 13, 2026
Merged

therealsama merged 1 commit into
mainfrom
feat/accessibility

Conversation

@therealsama

@therealsama therealsama commented Jun 11, 2026 •

Copy link
Copy Markdown
Collaborator
  • Skip link (WCAG 2.4.1): "Skip to main content" is now the first focusable
    element, offscreen until focused. Focuses via onClick rather than a
    native #main jump (which HashRouter would treat as a non-existent route
    and render the 404 page).
  • color-scheme: :root defaults to light to avoid a pre-hydration dark flash;
    html.light / html.dark pin the UA scheme to the in-app theme; the meta in
    index.html advertises both.
  • Reduced motion: a global prefers-reduced-motion baseline near-zeros incidental
    animation/transition durations (not animation: none, so transition/animation
    -end listeners still fire); JS-driven motion (smooth scroll-to-top, swipe
    cancel/snap-back) bypasses the CSS rule, so it reads the preference live per
    action via a shared prefersReducedMotion() helper.

@therealsama
therealsama requested a review from kplachkov as a code owner June 11, 2026 14:40
@therealsama therealsama changed the title Accessibility and theming improvements feat: accessibility and theming improvements Jun 11, 2026
@therealsama
therealsama force-pushed the feat/accessibility branch 7 times, most recently from 6bc7d71 to c132d0b Compare June 12, 2026 18:59
- Skip link (WCAG 2.4.1): "Skip to main content" is now the first focusable
  element, offscreen until focused. Focuses <main> via onClick rather than a
  native `#main` jump (which HashRouter would treat as a non-existent route
  and render the 404 page).
- color-scheme: :root defaults to `light` to avoid a pre-hydration dark flash;
  html.light / html.dark pin the UA scheme to the in-app theme; the meta in
  index.html advertises both.
- Reduced motion: a global prefers-reduced-motion baseline near-zeros incidental
  animation/transition durations (not `animation: none`, so transition/animation
  -end listeners still fire); JS-driven motion (smooth scroll-to-top, swipe
  cancel/snap-back) bypasses the CSS rule, so it reads the preference live per
  action via a shared prefersReducedMotion() helper.
@therealsama
therealsama enabled auto-merge June 13, 2026 08:04
@therealsama
therealsama merged commit b4ddc53 into main Jun 13, 2026
4 checks passed
@therealsama
therealsama deleted the feat/accessibility branch June 13, 2026 08:34
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.

2 participants