Skip to content

Commit

Permalink
input fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
diboune committed Oct 23, 2024
1 parent 40b329d commit 4ad0814
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions storefront/components/shared/input-combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,19 @@ export default forwardRef<
return (
<div className="relative w-full">
<div className="relative flex w-full items-center">
<Icon
className="absolute left-3 text-accent opacity-60"
name="Search"
/>
{!isDisabled && (
<Icon
className="absolute left-3 text-accent opacity-60"
name="Search"
/>
)}
<input
className={cx(
className,
"w-full rounded-lg border-[1.5px] border-accent bg-transparent py-[11px] pl-10 pr-[16px] font-medium outline-none placeholder:font-medium placeholder:text-accent placeholder:opacity-60",
"w-full rounded-lg border-[1.5px] border-accent bg-transparent py-[11px] pr-[16px] font-medium outline-none placeholder:font-medium placeholder:text-accent placeholder:opacity-60",
{
"pl-[16px]": isDisabled,
"pl-10": !isDisabled,
"size-4 border-2 border-accent bg-transparent p-1 accent-accent outline-none":
type === "checkbox",
},
Expand Down

0 comments on commit 4ad0814

Please sign in to comment.