feat: add dark mode and audit viewer-frontend accessibility #59
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "a11y/dark-mode-and-focus-management"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
next-themes-powered light/dark/system theming with an accessibleThemeTogglein every header (home, upload, admin users, login, register, reset-password).<main id="main-content">landmarks + correct heading hierarchy (h1) on every top-level route.PhotoViewerClient,PhotoViewer) into real dialogs:role="dialog",aria-modal, focus trap via newuseFocusTraphook.role="alert"/role="status"live regions for errors, success messages, and loading spinners so screen readers announce dynamic content.aria-labels to icon-only buttons (close, edit, deactivate, collapse/expand filters).dark:variants for previously light-only text/border/background colors across search filters, dialogs, and the photo grid.Test plan
npx eslint app components hooks --ext .ts,.tsx— no new errors/warnings vs. main (pre-existingany/unused-var issues untouched)npx tsc --noEmit— cleannpm run build— production build succeeds