atproto explorer pdsls.dev
atproto tool

fix(login): update 'id' prop to work with password managers

Chloe b14208e2 fc85b7cc

Changed files
+5 -3
src
components
+5 -3
src/components/login.tsx
···
return (
<form class="flex flex-col gap-y-2 px-1" onsubmit={(e) => e.preventDefault()}>
-
<label for="handle" class="hidden">
+
<label for="username" class="hidden">
Add account
</label>
<div class="dark:bg-dark-100 dark:shadow-dark-700 flex grow items-center gap-2 rounded-lg border-[0.5px] border-neutral-300 bg-white px-2 shadow-xs focus-within:outline-[1px] focus-within:outline-neutral-600 dark:border-neutral-600 dark:focus-within:outline-neutral-400">
<label
-
for="handle"
+
for="username"
class="iconify lucide--user-round-plus shrink-0 text-neutral-500 dark:text-neutral-400"
></label>
<input
type="text"
spellcheck={false}
placeholder="user.bsky.social"
-
id="handle"
+
id="username"
+
name="username"
+
autocomplete="username"
class="grow py-1 select-none placeholder:text-sm focus:outline-none"
onInput={(e) => setLoginInput(e.currentTarget.value)}
/>