Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: flip show/hide icons for input type password & change password old svelte code #53

Merged
merged 4 commits into from
Dec 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
flip show/hide icons for input type password
  • Loading branch information
sickl8 committed Nov 28, 2024
commit 30405d3275c7667ee1b149f5ec0824a1a24af184
4 changes: 2 additions & 2 deletions src/lib/components/form/Input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
{#if isPassword}
<button class="password-icon outline-none border-none text-primary-icn flex items-center justify-center" type="button" on:click={onClick}>
<svg class="size-7">
<use href="/images/icons.svg#icon-password-visible" class:hidden={passwordVisible}/>
<use href="/images/icons.svg#icon-password-invisible" class:hidden={!passwordVisible}/>
<use href="/images/icons.svg#icon-password-visible" class:hidden={!passwordVisible}/>
<use href="/images/icons.svg#icon-password-invisible" class:hidden={passwordVisible}/>
</svg>
</button>
{/if}
Expand Down