Skip to content

Dark theme: field error text contrast is about 2.5:1 #388

Description

@woksin

In the dark theme (Components 4.22.0, as used by the cratis template from Cratis.Templates 1.7.2), a field's validation message, for example "That name is already registered." under the Name field of CommandDialog, is rendered in rgb(204, 0, 0) on the dialog surface rgb(31, 41, 55). That's a contrast ratio of about 2.5:1, below the 4.5:1 WCAG AA minimum for normal-size text, so the message is hard to read, and the field's red outline is the only clearly visible cue.

Expected: the dark theme's error text token meets 4.5:1 against the surfaces it's used on (a lighter red, as the outline already uses).

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions