From cf8a24e4f931437e9d2ae72a2a278d569a6cd283 Mon Sep 17 00:00:00 2001 From: javiercoronadonarvaez Date: Mon, 22 Jun 2026 09:32:51 -0600 Subject: [PATCH 1/2] feat: update global text field disabled state --- static/css/v3/forms.css | 15 ++++++++++++++- templates/v3/includes/_field_text.html | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/static/css/v3/forms.css b/static/css/v3/forms.css index 7a757f301..d2eaa8e51 100644 --- a/static/css/v3/forms.css +++ b/static/css/v3/forms.css @@ -216,14 +216,27 @@ .field__control--disabled, .field__control--disabled:hover, .field__control--disabled:focus-within { - opacity: 0.5; + background-color: var(--color-surface-mid, #f7f7f8); + border-color: var(--color-stroke-strong, #05081640); cursor: not-allowed; } +.field__control--disabled .field__input, +.field__control--disabled .field__input::placeholder, +.field__control--disabled:hover .field__input::placeholder { + color: var(--color-text-secondary, #6b6d78); +} + .field__control--disabled .field__input { cursor: not-allowed; } +.field__control--disabled .field__icon, +.field__control--disabled:hover .field__icon, +.field__control--disabled:focus-within .field__icon { + color: var(--color-icon-secondary, #6b6d78); +} + /* ========== Datetime-local: hide native icon, full-area click ========== */ .field__control--datetime { position: relative; diff --git a/templates/v3/includes/_field_text.html b/templates/v3/includes/_field_text.html index 0b85147a8..cba7f8ee5 100644 --- a/templates/v3/includes/_field_text.html +++ b/templates/v3/includes/_field_text.html @@ -109,7 +109,11 @@ aria-describedby="field-{{ name }}-help" {% endif %} {% if validate_type == "email" %}x-model="value" @blur="touched = true"{% elif submit_icon %}x-model="q" {% if dispatch_field_change %}@input.debounce.150ms="$dispatch('field-change', { name: '{{ name }}', value: q })"{% endif %}{% elif max_chars %}x-model="value"{% endif %}> - {% if submit_icon %} + {% if disabled %} + + {% elif submit_icon %}