feat: icon changes when password is shown

This commit is contained in:
Arman committed 2022-07-07 19:06:24 +02:00
1 parent 864394d8b3
commit d351cafe46
1 file changed
+4 -1
+4 -1
View File
@@ -69,7 +69,10 @@
on:click={() => (showInPlainText = !showInPlainText)}
class="show-password-button"
aria-label="show password">
<span class="icon-eye" aria-hidden="true" />
<span
class:icon-eye={!showInPlainText}
class:icon-eye-off={showInPlainText}
aria-hidden="true" />
</button>
{/if}
</div>