This commit is contained in:
Timothy J. Baek 2024-08-01 21:43:13 +02:00
parent 3569fe9c73
commit c44e51ae58
2 changed files with 5 additions and 8 deletions

View File

@ -154,3 +154,7 @@ input[type='number'] {
.tippy-box[data-theme~='dark'] { .tippy-box[data-theme~='dark'] {
@apply rounded-lg bg-gray-950 text-xs border border-gray-900 shadow-xl; @apply rounded-lg bg-gray-950 text-xs border border-gray-900 shadow-xl;
} }
.password {
-webkit-text-security: disc;
}

View File

@ -13,8 +13,7 @@
<div class={outerClassName}> <div class={outerClassName}>
<input <input
class={inputClassName} class={`${inputClassName} ${show ? '' : 'password'}`}
class:dot={!show}
{placeholder} {placeholder}
bind:value bind:value
required={required && !readOnly} required={required && !readOnly}
@ -62,9 +61,3 @@
{/if} {/if}
</button> </button>
</div> </div>
<style>
.dot {
-webkit-text-security: disc;
}
</style>