Repository navigation
Add reduced-motion, forced-colors, and high-contrast accessibility support - #558
Merged
james2177 merged 4 commits intoSep 30, 2026
Merged
Conversation
…tion, forced-colors and hi Closes stellar-vortex-protocol#492
…heme system (Light/Dark/Sy Closes stellar-vortex-protocol#493
…are i18n: cookie/Accept-La Closes stellar-vortex-protocol#494
|
@aishabellova Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
# Conflicts: # src/app/layout.tsx # src/components/IntentStatusBadge.tsx # src/components/SettingsPanel.tsx # src/components/Skeleton.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add reduced-motion, forced-colors, and high-contrast accessibility support
What was solved
#492 — [High] Audit and complete reduced-motion, forced-colors and high-contrast support
Audit and complete reduced-motion, forced-colors, and high-contrast support across the app: centralize motion preference handling (user setting + OS media query), wire framer-motion MotionConfig, gate CSS animations, replace/pause infinite animations, add forced-colors and prefers-contrast styles, and add Playwright emulation tests plus accessibility docs.
Addressed:
#493 — [High] Implement a user-selectable theme system (Light/Dark/System) with no-flash SSR and persisted preference
Implement a user-selectable Light/Dark/System theme system with SSR-injected no-flash initialization, persisted preference via the storage facade,
data-theme-driven CSS variables (light palette defined once), dynamictheme-colormeta, Storybook toolbar integration, and a pureresolveThemehelper with system-change listeners.Addressed:
SettingsPanel, persisted through the existing storage facade.data-themeattribute on<html>; define the light palette once (not duplicated insideprefers-color-schememedia queries).data-themebefore paint to prevent FOUC, with a safe fallback when storage is blocked.#494 — [High] Add locale routing and SSR-aware i18n: cookie/Accept-Language detection, dynamic
<html lang>and persisted preferenceImplement SSR-aware locale resolution for the App Router: a pure negotiateLocale() helper, middleware that resolves locale from URL prefix/?lang= → vortex-locale cookie → Accept-Language → default and sets a request header plus Vary, server-side /dir and I18nProvider initialization from the resolved locale, and SettingsPanel locale changes that persist the cookie and update the route while preserving page state.
Addressed:
Changes
src/app/globals.css(modify)src/components/IntentStatusBadge.tsx(modify)src/lib/i18n/index.ts(modify)src/components/SettingsPanel.tsx(modify)src/app/layout.tsx(modify)src/lib/i18n/server.ts(modify)src/components/Skeleton.tsx(modify)src/lib/theme.ts(create)middleware.ts(create)Approach
<html lang>and persisted preference #494 — [High] Add locale routing and SSR-aware i18n: cookie/Accept-Language detection, dynamic<html lang>and persisted preference (Changed: src/app/layout.tsx, src/lib/i18n/index.ts, src/lib/i18n/server.ts, middleware.ts)Issues
Closes #492
Closes #493
Closes #494