Skip to content

Commit

Permalink
feat: input field invalid styles
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Jan 19, 2025
1 parent cd9a87e commit 26617c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/lib/components/modals/auth/forms/join.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@
class="flex flex-col gap-3"
novalidate
>
<label class="input input-bordered flex items-center gap-2">
<label
class="input input-bordered flex items-center gap-2 transition-[border-color]"
class:input-error={errors?.detail?.toLowerCase().includes('email')}
>
<coreicons-shape-mail class="size-4"></coreicons-shape-mail>
<input
type="email"
Expand All @@ -79,7 +82,10 @@
placeholder="Email address*"
/>
</label>
<label class="input input-bordered flex items-center gap-2 pr-2">
<label
class="input input-bordered flex items-center gap-2 pr-2 transition-[border-color]"
class:input-error={errors?.detail?.toLowerCase().includes('password')}
>
<coreicons-shape-lock class="size-4"></coreicons-shape-lock>
<input
type={password_type}
Expand Down

0 comments on commit 26617c2

Please sign in to comment.