Refactor Button to semantic tokens and intent prop, fix error focus rings
Replace palette token references (blue-01, red-02, grey-01) with dedicated button domain tokens. Rename `color` prop to `intent` with semantic values (default, danger, subtle, neutral). Add loading state with spinner and aria-busy. Fix Checkbox and Radio error states leaking teal focus ring. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,6 +82,13 @@
|
||||
--color-control-bg: var(--color-white);
|
||||
--color-control-bg-readonly: var(--color-off-white);
|
||||
|
||||
/* Button */
|
||||
--color-button-default: var(--color-blue-01);
|
||||
--color-button-danger: var(--color-red-02);
|
||||
--color-button-neutral: var(--color-grey-01);
|
||||
--color-button-subtle-bg: var(--color-blue-04);
|
||||
--color-button-subtle-text: var(--color-blue-01);
|
||||
|
||||
/* Radius */
|
||||
--radius-sm: 4px;
|
||||
--radius-default: 6px;
|
||||
|
||||
Reference in New Issue
Block a user