Skip to content

Dark theme for the reconnect dialog - #19

Merged
fdaniel02 merged 1 commit into
mainfrom
dark-reconnect-dialog
Oct 21, 2026
Merged

fdaniel02 merged 1 commit into
mainfrom
dark-reconnect-dialog

Conversation

@fdaniel02

Copy link
Copy Markdown
Owner

The reconnect dialog ("Rejoining the server…", "Failed to rejoin. Please retry or reload the page.") still had the
Blazor template's light styling: a white box, light blue buttons and a blue spinner on the dark app.

Changes

Only ReconnectModal.razor.css; the markup and ReconnectModal.razor.js are unchanged.

  • Dialog: var(--card) background, var(--line) border, var(--text) text (without it the browser's default
    dialog text colour, which is dark, applies), 16px corners, darker shadow. The width shrinks on narrow phones
    (min(20rem, 100% - 32px)).
  • "Trying again in N seconds" in var(--muted).
  • Backdrop rgba(0,0,0,.6), as the app's .overlay.
  • Retry / Resume: like .btn.primary (accent green, white text, 14px corners). Pressing dims the button instead of
    the template's blue hover colour, which sticks after a tap on a phone. The focus ring is the theme's text colour,
    so it shows on the dark background.
  • Spinner in var(--accent).

Contrast: white on the accent green is about 3.4:1. The button text is 1.1rem bold (18.7px with the app's 17px
base), which counts as large text in WCAG, so 3:1 applies. This replaces the template's white on #6b9ed2, which
was accepted in SonarCloud as S7924.

Testing

CSS only; bUnit doesn't render styles. Checked with screenshots at phone size (390×844) in headless Edge, before
and after, for every state of the dialog (rejoining, retrying, failed, paused, resume failed), shown by setting the
dialog's state classes the way Blazor does. Still to check on a real phone.

The dialog still had the template's light styling. It now uses the app's theme variables, and its buttons look like the app's primary buttons.
@sonarqubecloud

Copy link
Copy Markdown

@fdaniel02
fdaniel02 merged commit 8dfe820 into main Oct 21, 2026
5 checks passed
@fdaniel02
fdaniel02 deleted the dark-reconnect-dialog branch October 21, 2026 12:12
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.

1 participant