noph-ui 0.6.11 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,9 +59,7 @@
|
|
|
59
59
|
})
|
|
60
60
|
</script>
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
64
|
-
<span
|
|
62
|
+
<label
|
|
65
63
|
style={(variant === 'outlined'
|
|
66
64
|
? '--top-space:1rem;--bottom-space:1rem;--floating-label-top:-0.5rem;--floating-label-left:-2.25rem;--_focus-outline-width:3px;'
|
|
67
65
|
: !label?.length
|
|
@@ -69,12 +67,6 @@
|
|
|
69
67
|
: '') + style}
|
|
70
68
|
class="text-field"
|
|
71
69
|
bind:this={element}
|
|
72
|
-
onclick={() => {
|
|
73
|
-
if (attributes.disabled) {
|
|
74
|
-
return
|
|
75
|
-
}
|
|
76
|
-
textElement?.focus()
|
|
77
|
-
}}
|
|
78
70
|
>
|
|
79
71
|
<div
|
|
80
72
|
class="field"
|
|
@@ -171,7 +163,7 @@
|
|
|
171
163
|
</div>
|
|
172
164
|
{/if}
|
|
173
165
|
</div>
|
|
174
|
-
</
|
|
166
|
+
</label>
|
|
175
167
|
|
|
176
168
|
<style>
|
|
177
169
|
.active-indicator {
|
|
@@ -213,7 +205,10 @@
|
|
|
213
205
|
opacity: 0.38;
|
|
214
206
|
}
|
|
215
207
|
.background {
|
|
216
|
-
background: var(
|
|
208
|
+
background: var(
|
|
209
|
+
--np-text-field-filled-background-color,
|
|
210
|
+
var(--np-color-surface-container-highest)
|
|
211
|
+
);
|
|
217
212
|
}
|
|
218
213
|
.disabled .background {
|
|
219
214
|
background: var(--np-color-on-surface);
|