Skip to content

Commit 2cdf257

Browse files
committed
refactor(styled input): change bg-transparent to bg-background
1 parent fa57d0e commit 2cdf257

File tree

1 file changed

+5
-5
lines changed
  • packages/kit-styled/src/components/input

1 file changed

+5
-5
lines changed

packages/kit-styled/src/components/input/input.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ export const Input = component$<InputProps>(
1212
'bind:value': valueSig,
1313
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1414
'bind:checked': checkedSig,
15-
...restOfProps
15+
...props
1616
}) => {
1717
return (
1818
<>
1919
<input
20-
{...restOfProps}
21-
bind:value={valueSig}
20+
{...props}
2221
aria-errormessage={`${name}-error`}
2322
aria-invalid={!!error}
23+
bind:value={valueSig}
2424
class={cn(
25-
'rounded-base border-input placeholder:text-muted-foreground focus-visible:ring-ring flex h-12 w-full border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
26-
restOfProps.class,
25+
'rounded-base border-input placeholder:text-muted-foreground focus-visible:ring-ring bg-background text-foreground file:text-foreground flex h-12 w-full border px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
26+
props.class,
2727
)}
2828
id={name}
2929
/>

0 commit comments

Comments
 (0)