Skip to content
SprecherEast
Issue 201

bug: The header ignores the visitor's light or dark theme on six pages

Back to our plan
Done
bugfrontendstylingpriority: medium

Type

bug

Summary

Six pages force the header into one theme, so dark-mode visitors get a light header on the home page and light-mode visitors get a dark header on posts.

Problem

  • Light is forced on CMS pages ([slug]/page.client.tsx:10), /posts (posts/page.client.tsx:10), /posts/page/[n] (posts/page/[pageNumber]/page.client.tsx:10) and /search (search/page.client.tsx:10).
  • Dark is forced on a post (posts/[slug]/page.client.tsx:10) and on an event with a photo (events/[slug]/page.client.tsx:14).
  • Their comments say "dark" where the code sets light.

Found while taking the UI inventory (https://github.com/boulaajaj/sprecher-east-neighborhood-website/blob/main/docs/ui/evidence.md#bugs-found-while-taking-the-inventory, opens in a new tab, #170).

Proposed fix

Let the header follow the visitor's theme, except over a full-bleed photo, where it needs the on-image style (tokens from #146).

Acceptance criteria

  • Not done: In dark mode, every page has a dark header; in light mode, a light one, apart from the on-image header over photos.
  • Not done: Checked at 375 and 1280 px in both themes.

Area

frontend, styling

Priority

priority: medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab