fix: danger Button uses text-bg, not white (v0.4.1)
ci / build-and-design (push) Failing after 10s

White on the danger fill lands ~3.3:1 against tuned dark-theme danger
tokens (e.g. delta's rust at 58% lightness) — below AA for 14px labels.
text-bg follows the primary variant's own pattern (bg-brand text-bg)
and holds ≥4.5:1 on both the kit default and delta's tokens.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Jason Stedwell
2026-07-16 11:14:47 -05:00
co-authored by Claude Fable 5
parent 27d8225369
commit 9d7f593307
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const buttonVariants = cva(
secondary: "bg-surface-2 text-text hover:bg-surface-2/70 shadow-sm",
outline: "border border-border bg-transparent text-text hover:bg-surface-2/60",
ghost: "bg-transparent text-text hover:bg-surface-2/60",
danger: "bg-danger text-white hover:bg-danger/90 shadow-sm",
danger: "bg-danger text-bg hover:bg-danger/90 shadow-sm",
link: "text-brand underline-offset-4 hover:underline",
},
size: {