Skip to content

Commit

Permalink
fix bug: background color of disabled input (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrloureed committed Sep 11, 2024
1 parent c563310 commit 42be34c
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.148",
"version": "0.0.149",
"repository": {
"type": "git",
"url": "https://github.com/viamrobotics/prime.git",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/input/input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $: defaultClasses =
!disabled &&
!readonly &&
!isError &&
'border-light hover:border-gray-6 focus:border-gray-9';
'border-light bg-white hover:border-gray-6 focus:border-gray-9';
$: readonlyClasses =
readonly && 'bg-light focus:border-gray-9 border-transparent';
Expand All @@ -79,7 +79,7 @@ $: errorClasses =
aria-disabled={disabled ? true : undefined}
aria-invalid={isError ? true : undefined}
class={cx(
'h-7.5 w-full appearance-none border bg-white px-2 py-1.5 text-xs leading-tight text-default outline-none',
'h-7.5 w-full appearance-none border px-2 py-1.5 text-xs leading-tight text-default outline-none',
defaultClasses,
readonlyClasses,
disabledClasses,
Expand Down

0 comments on commit 42be34c

Please sign in to comment.