Skip to content

Bugfix - Resolve breadcrumbs dark-mode hover visibility report on the house-style branch - #755

Closed
markmead wants to merge 3 commits into
feature/house-style-dark-mode-resetfrom
claude/dark-variant-hovers-application-try3kc
Closed

Bugfix - Resolve breadcrumbs dark-mode hover visibility report on the house-style branch#755
markmead wants to merge 3 commits into
feature/house-style-dark-mode-resetfrom
claude/dark-variant-hovers-application-try3kc

Conversation

@markmead

Copy link
Copy Markdown
Owner

Summary

Continues #752 (stacked on this PR's base, feature/house-style-dark-mode-reset). #753's fix (#754, "Give dark example HTML files an explicit dark background") is merged into main now, but this house-style branch predated it — so its migrated application collections, including breadcrumbs, were still missing the fix.

Investigation: "breadcrumbs link text becomes invisible on hover"

Traced this down before assuming it was a cascade bug in the migrated hover classes. It wasn't — dark:hover:text-gray-50 and the light-mode hover:text-gray-900 have identical CSS specificity, and dark:hover: is generated later in the compiled stylesheet, so it correctly wins the tie (verified against Tailwind Play and by reading component.css's actual rule order).

The real cause: without #754's background fix, a standalone -dark.html file (as opposed to one embedded in ComponentPreview.astro's iframe, which supplies its own bg-gray-900) renders on the browser's default white page background. The base dark:text-gray-200 state is merely low-contrast against that — but the hover state (dark:hover:text-gray-50, near-white) is what actually disappears, matching the report exactly. No changes to the hover classes themselves were needed.

Also worth noting for anyone testing hover states in this sandbox specifically: its headless Chromium reports (hover: hover) as false and isn't overridable via CDP's Emulation.setEmulatedMedia in this build, and Tailwind v4 wraps the hover: variant in that media query — so hover states never visibly trigger in this sandbox's headless browser at all, bug or not. Verify in a real browser or Tailwind Play instead.

Test plan

  • pnpm lint
  • pnpm astro check
  • Verified all migrated collections (badges, breadcrumbs, button-groups, checkboxes, details-list, dividers) now have an explicit dark:bg-* on every -dark.html's <body>
  • Confirmed compiled component.css rule order gives dark:hover: the correct cascade priority over the light-mode hover: class
  • Manual dev-server spot check of breadcrumbs in a real browser (not this sandbox's headless Chromium — see note above)

Generated by Claude Code

claude added 2 commits August 31, 2026 14:43
…bs hover investigation

Regenerates public/component.css so it reflects the merged-in #754 fix
(explicit dark:bg-* on every -dark.html <body>). Documents the
investigation into the reported "breadcrumbs hover text becomes invisible"
bug in HOUSE_STYLE_PLAN.md: the dark:hover: cascade itself was already
correct, the missing standalone dark background was the actual cause, and
merging main resolves it.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
hyperui d3e750e Commit Preview URL

Branch Preview URL
Aug 31 2026, 03:02 PM

Copy link
Copy Markdown
Owner Author

Closing — redundant with merging main directly into feature/house-style-dark-mode-reset, which is what should have happened here in the first place instead of a separate stacked branch/PR for this. Confirmed the direct merge already carries everything this PR did (public/component.css matches byte-for-byte, and breadcrumbs/1-dark.html already has dark:bg-gray-900).


Generated by Claude Code

@markmead markmead closed this Aug 31, 2026
@markmead
markmead deleted the claude/dark-variant-hovers-application-try3kc branch August 31, 2026 15:35
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