Skip to content

dialog: set color to CanvasText (pair with Canvas background) #381

Closed

Description

@ikrishg

Problem

:where(dialog) uses background-color: Canvas but color: inherit. On a dark page with light text, an open dialog can become light-on-light and unreadable.

Spec / UA

WHATWG HTML rendering and Blink/Gecko UA styles use color: CanvasText with background-color: Canvas.

Fix

:where(dialog) {
  background-color: Canvas;
  color: CanvasText;
  /* … */
}

Change in src/components/other.scss, then yarn build so css/ and dist/ stay in sync.

Context

From the 2026-10-07 reset audit vs peers/UA/specs. Also flagged by Cursor Bugbot on #374.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions