You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The card-detail action row rendered every button on the same Raised
surface, so a row of them said nothing about what any one of them did
(dogfood finding, issue #157).
widget.Button gains a Variant: Neutral, Primary, Success or Danger, with
per-variant blurred, hovered and focused tokens built once by the theme
factory. The hue carries the meaning and the state carries the elevation
- a blurred button wears its variant as a tint on the resting surface, a
hovered one wears the tint as a fill, a focused one wears the saturated
hue. Neutral is the zero value, so a caller that states no meaning gets
the calmest surface.
Three tint slots and one alarm fill join the palette. The armed two-step
gets its own deeper fill because a purge button arms from the Danger
variant, and an armed button wearing the focused-Danger fill would be
the one state a user must not misread.
The 256-color audit covers the new slots, and a contrast audit is added
beside it: every variant, in every state, clears 4.5:1 in truecolor and
again after quantization, worst cell 4.82. A second test keeps the four
variants separable at 256 colors.
Variants are assigned across the card-detail action row, the editor, the
settings pane, the ship guard, the kill and purge prompts, the ADR split
and the issue import. huh's Confirm carries the Neutral pair: it exposes
one button pair for two meanings, so the calmest variant is the only
honest one there.
Interaction is unchanged; the affected color goldens are regenerated.
0 commit comments