Skip to content

Commit

Permalink
fix text color for danger-outline variant button (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrloureed authored Sep 4, 2024
1 parent 72cb8b7 commit a1a0099
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viamrobotics/prime-core",
"version": "0.0.147",
"version": "0.0.148",
"repository": {
"type": "git",
"url": "https://github.com/viamrobotics/prime.git",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/button/button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ $: handleDisabled = preventHandler(disabled);
{title}
aria-disabled={disabled ? true : undefined}
class={cx(
'inline-flex select-none items-center justify-center gap-1.5 whitespace-nowrap border text-default',
'inline-flex select-none items-center justify-center gap-1.5 whitespace-nowrap border',
{
'flex w-full': width === 'full',
'inline-flex': width !== 'full',
'px-3': !icon,
'pl-2 pr-3': icon,
'cursor-not-allowed !border-disabled-light !bg-disabled-light text-disabled-dark':
disabled,
'border-light bg-light hover:border-medium hover:bg-medium active:bg-gray-2':
'border-light bg-light text-default hover:border-medium hover:bg-medium active:bg-gray-2':
variant === 'primary' && !disabled,
'border-gray-9 bg-gray-9 text-white hover:border-black hover:bg-black active:bg-[#000]':
variant === 'dark' && !disabled,
Expand Down

0 comments on commit a1a0099

Please sign in to comment.