From 7e028849410f4abdd26da1fedd8fce285e7d0910 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 30 Nov 2025 23:16:00 -0800 Subject: [PATCH] input: add no1password prop, tweak counter styling --- src/lib/components/ui/Input.svelte | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/components/ui/Input.svelte b/src/lib/components/ui/Input.svelte index 5278f073..37d55703 100644 --- a/src/lib/components/ui/Input.svelte +++ b/src/lib/components/ui/Input.svelte @@ -17,6 +17,7 @@ fullHeight?: boolean alignRight?: boolean accessory?: boolean + no1password?: boolean } let { @@ -40,6 +41,7 @@ readonly = false, required = false, class: className = '', + no1password = false, ...restProps }: Props = $props() @@ -95,6 +97,7 @@ {readonly} {required} maxlength={maxLength} + data-1p-ignore={no1password} {...restProps} /> @@ -120,6 +123,7 @@ {readonly} {required} maxlength={maxLength} + data-1p-ignore={no1password} {...restProps} /> {/if} @@ -144,6 +148,7 @@ {readonly} {required} maxlength={maxLength} + data-1p-ignore={no1password} {...restProps} /> @@ -169,6 +174,7 @@ {readonly} {required} maxlength={maxLength} + data-1p-ignore={no1password} {...restProps} /> {/if} @@ -211,6 +217,7 @@ :global(.label .required) { color: $error; margin-left: $unit-fourth; + display: none; } .error { @@ -258,8 +265,9 @@ .counter { color: var(--text-tertiary); display: block; - font-weight: $bold; + font-weight: $normal; line-height: calc($unit * 6); + font-size: $font-small; position: absolute; right: $unit-2x; top: 0;