Skip to content

Commit

Permalink
corrected password toggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
iSouvikKhan committed Aug 15, 2024
1 parent 6dd56be commit 09cc145
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ const Signin = () => {
</div>
<div className="relative flex flex-col gap-4">
<Label>Password</Label>
<div className="flex rounded-lg border">
<div className="relative flex items-center rounded-lg border">
<Input
className="border-0"
className="flex-1 border-0"
name="password"
type={isPasswordVisible ? 'text' : 'password'}
id="password"
Expand All @@ -103,7 +103,7 @@ const Signin = () => {
}}
/>
<button
className="absolute bottom-0 right-0 flex h-10 items-center px-4 text-gray-600"
className="absolute right-2 top-1/2 -translate-y-1/2 transform text-gray-600"
onClick={togglePasswordVisibility}
>
{isPasswordVisible ? (
Expand Down

0 comments on commit 09cc145

Please sign in to comment.