Skip to content

fix(#164): eliminate white flash on History calendar in dark mode#165

Merged
ChristopherRotnes merged 2 commits into
masterfrom
claude/fix-open-issues-bug-PucpN
May 12, 2026
Merged

fix(#164): eliminate white flash on History calendar in dark mode#165
ChristopherRotnes merged 2 commits into
masterfrom
claude/fix-open-issues-bug-PucpN

Conversation

@ChristopherRotnes
Copy link
Copy Markdown
Owner

$(cat <<'EOF'

Summary

  • Carbon's @carbon/styles SCSS compilation emits dark skeleton token overrides only under the .cds--g100 CSS class selector
  • ThemeProvider sets data-theme="g100" on <html> but never adds the .cds--g100 class
  • Therefore --cds-skeleton-background always resolved to the :root light default (#e8e8e8), making SkeletonPlaceholder and AccordionSkeleton render bright/white in dark mode
  • Added --cds-skeleton-background: #393939 and --cds-skeleton-element: #525252 to the existing .cds--g100, [data-theme="g100"] block in carbon-tokens.css (Carbon's official g100 gray-80/gray-70 values)

Test plan

  • Navigate to History in dark mode (g100) — no white flash on the calendar area
  • Confirm the calendar skeleton (SkeletonPlaceholder) appears dark while loading
  • Confirm the session-list skeleton (AccordionSkeleton) also appears dark when clicking a date
  • Toggle to light mode (g10) and verify skeleton still looks correct (light gray shimmer)
  • No regression in History edit mode, session expand, or filter behaviour
  • npm test passes

Closes #164

https://claude.ai/code/session_013NuK5HCyNX7zkeUMqGKwZp
EOF
)


Generated by Claude Code

… History calendar white flash

Carbon's compiled CSS from @carbon/styles emits dark skeleton token overrides
only under the `.cds--g100` class selector. ThemeProvider sets data-theme="g100"
on <html> but never adds the .cds--g100 class, so --cds-skeleton-background
always resolved to the :root light default (#e8e8e8), producing a white flash
on SkeletonPlaceholder / AccordionSkeleton in dark mode.

Added --cds-skeleton-background: #393939 and --cds-skeleton-element: #525252
to the existing .cds--g100, [data-theme="g100"] block in carbon-tokens.css
(Carbon's official g100 gray-80/gray-70 values).

https://claude.ai/code/session_013NuK5HCyNX7zkeUMqGKwZp
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-165.westeurope.7.azurestaticapps.net

The previous description said "defaults to g100 (dark)" which was wrong.
The app actually respects the OS prefers-color-scheme on first visit
(no saved preference) — dark OS → g100, light OS → g10. This is by design.

https://claude.ai/code/session_013NuK5HCyNX7zkeUMqGKwZp
@ChristopherRotnes ChristopherRotnes marked this pull request as ready for review May 12, 2026 06:38
@ChristopherRotnes ChristopherRotnes merged commit dd9c46b into master May 12, 2026
2 of 3 checks passed
@ChristopherRotnes ChristopherRotnes deleted the claude/fix-open-issues-bug-PucpN branch May 12, 2026 06:38
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.

As a developer I want to eliminate the white flash on the History calendar so the UI feels polished on every navigation

2 participants