From f37635829d28536b4ff7ee37bd5f48e11e0fc3f1 Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Thu, 20 Jun 2024 18:28:42 +0300 Subject: [PATCH] Replaced :invalid with :user-invalid so inputs won't be invalid on page load --- public/style.css | 6 +++--- src/rawdata/scss/form.css | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/style.css b/public/style.css index ba12e70d..f1bff694 100644 --- a/public/style.css +++ b/public/style.css @@ -8130,13 +8130,13 @@ pre, } .error :is(.hmn-form input), .hmn-form input.error, -.hmn-form input:invalid, +.hmn-form input:user-invalid, .error :is(.hmn-form textarea), .hmn-form textarea.error, -.hmn-form textarea:invalid, +.hmn-form textarea:user-invalid, .error :is(.hmn-form select), .hmn-form select.error, -.hmn-form select:invalid { +.hmn-form select:user-invalid { border-color: var(--border-color-error); } .hmn-form input:disabled, diff --git a/src/rawdata/scss/form.css b/src/rawdata/scss/form.css index 9f00fb0b..66617a94 100644 --- a/src/rawdata/scss/form.css +++ b/src/rawdata/scss/form.css @@ -23,7 +23,7 @@ .error &, &.error, - &:invalid { + &:user-invalid { border-color: var(--border-color-error); } @@ -92,4 +92,4 @@ border-bottom: 1px solid var(--border-color); } } -} \ No newline at end of file +}