inputfield: readonly is more prominent

This commit is contained in:
Alex
2025-03-04 10:04:06 +01:00
parent 8258a7c2a3
commit fa996692fe

View File

@@ -132,8 +132,11 @@
{/if}
{#if readonly}
<input {name} type="hidden" bind:value />
{/if}
{#if type === 'select'}
<span class="label"
>{type == 'select' && typeof value === 'number' ? options[value].label : value}</span
>
{:else if type === 'select'}
<select
{name}
bind:value
@@ -176,7 +179,7 @@
<style>
:root {
--form-control-color: var(--green); /* Changed from #6bff55 */
--form-control-disabled: var(--overlay0); /* Changed from #959495 */
--form-control-disabled: var(--subtext1); /* Changed from #959495 */
}
.form-control {