Skip to content

Commit

Permalink
Fix button to match Figma better
Browse files Browse the repository at this point in the history
  • Loading branch information
origami-z committed May 13, 2024
1 parent 45d3235 commit e5c9ad4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 25 deletions.
10 changes: 9 additions & 1 deletion packages/lab/stories/kitchen-sink/kitchen-sink.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,15 @@ export const Example1 = () => {
</StackLayout>
<StackLayout direction="row">
<ButtonExamples />
<Button disabled>Submit</Button>
<Button variant="cta" disabled>
CTA
</Button>
<Button variant="primary" disabled>
Primary
</Button>
<Button variant="secondary" disabled>
Secondary
</Button>
</StackLayout>
<StackLayout direction="row">
<SegmentedButtonGroupDefault />
Expand Down
28 changes: 14 additions & 14 deletions packages/theme/css/characteristics/actionable-next.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
--salt-actionable-cta-foreground-active: var(--salt-palette-foreground-primary-alt);
--salt-actionable-cta-foreground-disabled: var(--salt-palette-foreground-primary-alt-disabled);
--salt-actionable-cta-background: var(--salt-palette-accent-action);
--salt-actionable-cta-background-hover: var(--salt-palette-accent-weak); /* TBD */
--salt-actionable-cta-background-active: var(--salt-palette-accent-action-active);
--salt-actionable-cta-background-disabled: var(--salt-palette-accent-action-disabled);
--salt-actionable-cta-background-hover: var(--salt-palette-accent-weak);
--salt-actionable-cta-background-active: var(--salt-palette-accent-strong);
--salt-actionable-cta-background-disabled: var(--salt-palette-accent-disabled);
/* Primary variant */
--salt-actionable-primary-foreground: var(--salt-palette-foreground-primary-alt);
--salt-actionable-primary-foreground-hover: var(--salt-palette-foreground-primary-alt);
--salt-actionable-primary-foreground-active: var(--salt-palette-foreground-invert);
--salt-actionable-primary-foreground-active: var(--salt-palette-foreground-primary-alt);
--salt-actionable-primary-foreground-disabled: var(--salt-palette-foreground-primary-alt-disabled);
--salt-actionable-primary-background: var(--salt-palette-neutral-action);
--salt-actionable-primary-background-hover: var(--salt-palette-neutral-weak); /* TBD */
--salt-actionable-primary-background-active: var(--salt-palette-neutral-strongest);
--salt-actionable-primary-background-disabled: var(--salt-palette-neutral-action-disabled);
--salt-actionable-primary-background: var(--salt-palette-neutral);
--salt-actionable-primary-background-hover: var(--salt-palette-neutral-weak);
--salt-actionable-primary-background-active: var(--salt-palette-neutral-action-active);
--salt-actionable-primary-background-disabled: var(--salt-palette-neutral-weak-disabled);
/* Secondary variant */
--salt-actionable-secondary-foreground: var(--salt-palette-foreground-primary);
--salt-actionable-secondary-foreground-hover: var(--salt-palette-foreground-primary-alt);
--salt-actionable-secondary-foreground-active: var(--salt-palette-foreground-invert);
--salt-actionable-secondary-foreground-disabled: var(--salt-palette-foreground-primary-alt-disabled);
--salt-actionable-secondary-background: var(--salt-palette-background-none); /* TBD */
--salt-actionable-secondary-background-hover: var(--salt-palette-neutral-weak); /* TBD */
--salt-actionable-secondary-background-active: var(--salt-palette-neutral-strongest);
--salt-actionable-secondary-background-disabled: var(--salt-palette-neutral-action-disabled);
--salt-actionable-secondary-foreground-active: var(--salt-palette-foreground-primary-alt);
--salt-actionable-secondary-foreground-disabled: var(--salt-palette-foreground-primary-disabled);
--salt-actionable-secondary-background: var(--salt-palette-background-none);
--salt-actionable-secondary-background-hover: var(--salt-palette-neutral-weak);
--salt-actionable-secondary-background-active: var(--salt-palette-neutral-action-active);
--salt-actionable-secondary-background-disabled: var(--salt-palette-background-none);
}
6 changes: 2 additions & 4 deletions packages/theme/css/palette/accent-next.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
--salt-palette-accent-weaker-disabled: var(--salt-color-blue-200-40a);
--salt-palette-accent-weakest: var(--salt-color-blue-100);
--salt-palette-accent-action: var(--salt-color-blue-500);
--salt-palette-accent-action-active: var(--salt-color-blue-800);
--salt-palette-accent-action-disabled: var(--salt-color-blue-500-40a);
--salt-palette-accent-action-active: var(--salt-color-blue-600);
}

.salt-theme.salt-theme-next[data-mode="dark"] {
Expand All @@ -28,6 +27,5 @@
--salt-palette-accent-weaker-disabled: var(--salt-color-blue-800-40a);
--salt-palette-accent-weakest: var(--salt-color-blue-900);
--salt-palette-accent-action: var(--salt-color-blue-500);
--salt-palette-accent-action-active: var(--salt-color-blue-800);
--salt-palette-accent-action-disabled: var(--salt-color-blue-500-40a);
--salt-palette-accent-action-active: var(--salt-color-blue-600);
}
2 changes: 0 additions & 2 deletions packages/theme/css/palette/foreground-next.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
--salt-palette-foreground-secondary: var(--salt-color-gray-600);
--salt-palette-foreground-secondary-disabled: var(--salt-color-gray-600-40a);
--salt-palette-foreground-visited: var(--salt-color-purple-800);
--salt-palette-foreground-invert: var(--salt-color-white);
}
.salt-theme.salt-theme-next[data-mode="dark"] {
--salt-palette-foreground-active: var(--salt-color-blue-300);
Expand All @@ -20,5 +19,4 @@
--salt-palette-foreground-secondary: var(--salt-color-gray-400);
--salt-palette-foreground-secondary-disabled: var(--salt-color-gray-400-40a);
--salt-palette-foreground-visited: var(--salt-color-purple-200);
--salt-palette-foreground-invert: var(--salt-color-black);
}
8 changes: 4 additions & 4 deletions packages/theme/css/palette/neutral-next.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
--salt-palette-neutral-stronger-tertiary: var(--salt-color-black-20a);
--salt-palette-neutral-strongest: var(--salt-color-gray-800);
--salt-palette-neutral-weak: var(--salt-color-gray-400);
--salt-palette-neutral-weak-disabled: var(--salt-color-gray-400-40a);
--salt-palette-neutral-weaker: var(--salt-color-gray-300);
--salt-palette-neutral-weaker-disabled: var(--salt-color-gray-300-40a);
--salt-palette-neutral-weaker-readonly: var(--salt-color-gray-300-10a);
--salt-palette-neutral-weakest: var(--salt-color-gray-200);
--salt-palette-neutral-action: var(--salt-color-gray-500);
--salt-palette-neutral-action-disabled: var(--salt-color-gray-500-40a);
--salt-palette-neutral-action-active: var(--salt-color-gray-800);
--salt-palette-neutral-action-active: var(--salt-color-gray-600);
}
.salt-theme.salt-theme-next[data-mode="dark"] {
--salt-palette-neutral: var(--salt-color-gray-500);
Expand All @@ -28,11 +28,11 @@
--salt-palette-neutral-stronger-tertiary: var(--salt-color-white-20a);
--salt-palette-neutral-strongest: var(--salt-color-gray-200);
--salt-palette-neutral-weak: var(--salt-color-gray-600);
--salt-palette-neutral-weak-disabled: var(--salt-color-gray-600-40a);
--salt-palette-neutral-weaker: var(--salt-color-gray-700);
--salt-palette-neutral-weaker-disabled: var(--salt-color-gray-700-40a);
--salt-palette-neutral-weaker-readonly: var(--salt-color-gray-700-10a);
--salt-palette-neutral-weakest: var(--salt-color-gray-800);
--salt-palette-neutral-action: var(--salt-color-gray-500);
--salt-palette-neutral-action-disabled: var(--salt-color-gray-500-40a);
--salt-palette-neutral-action-active: var(--salt-color-gray-800);
--salt-palette-neutral-action-active: var(--salt-color-gray-600);
}

0 comments on commit e5c9ad4

Please sign in to comment.