feat/high-contrast-mode #28

Merged
nrupard merged 13 commits from feat/high-contrast-mode into main 2026-04-08 21:16:42 +02:00
Member

Still needs to be tested in dev environment. Last commit was supposed to fix the breakage, but I ran out of time to test. (As of 4/2/26)

Still needs to be tested in dev environment. Last commit was supposed to fix the breakage, but I ran out of time to test. (As of 4/2/26)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add --color-text-secondary: #1a1a1a to body.high-contrast CSS
- Use existing btn-icon class for desktop toggle button consistency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a small synchronous script that reads localStorage and applies
the high-contrast class on body before Dioxus hydrates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
class_list() requires web_sys Element feature flags not enabled in
this project. Use class_name string manipulation instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a contrast toggle button to the static landing page navbar,
with matching high-contrast CSS overrides and localStorage persistence
using the same key as the Dioxus app.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Shrink desktop button from 32x32 (btn-icon) to 28x28 (w-7 h-7)
  with w-4 h-4 icon
- Render both SVG icons always, toggle visibility with hidden class
  to prevent layout reflow on state change

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Initialize the active signal by reading the body's class (already set
by high-contrast-init.js) instead of defaulting to false and correcting
in use_effect. This prevents the first render from flashing the wrong
icon/state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move nav-links (Features, About) next to the Rusty Links logo by
removing margin-left:auto from nav-links and adding it to nav-actions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nrupard changed title from WIP: feat/high-contrast-mode to feat/high-contrast-mode 2026-04-08 21:16:40 +02:00
nrupard deleted branch feat/high-contrast-mode 2026-04-08 21:16:43 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
a8n-tools/rusty-links!28
No description provided.