Skip to content

Commit

Permalink
Remove focus:z-10 class from text-input
Browse files Browse the repository at this point in the history
  • Loading branch information
pallendes committed Sep 25, 2023
1 parent 07d3c98 commit 9d06d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/form-field/text-input/text-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const TextInput = ({
<div className={classNames("relative w-full", formFieldGroupStyles)}>
{LeftIcon ? (
<div
className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 z-20"
className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 z-10"
aria-hidden="true"
>
<LeftIcon className="text-gray-400 h-3.5 w-3.5 fill-neutral-600" />
Expand Down Expand Up @@ -88,7 +88,7 @@ export const TextInput = ({
disabled && "cursor-not-allowed bg-neutral-100 text-neutral-600",
!error &&
!disabled &&
"hover:border-neutral-600 focus:z-10 focus:border-primary-400 focus:ring-2 focus:ring-primary-200",
"hover:border-neutral-600 focus:border-primary-400 focus:ring-2 focus:ring-primary-200",
error && !disabled && "border-danger-500"
)}
disabled={disabled}
Expand Down

0 comments on commit 9d06d13

Please sign in to comment.