From 917b77a026e5514f6891c5d1d3b4675872d2f39e Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 13 Feb 2025 17:06:59 +0100 Subject: [PATCH] fix(login): only show error state on login box if user interacted Signed-off-by: Ferdinand Thiessen --- core/src/components/login/LoginForm.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue index d031f14140a..a340887a872 100644 --- a/core/src/components/login/LoginForm.vue +++ b/core/src/components/login/LoginForm.vue @@ -304,5 +304,10 @@ export default { text-align: center; overflow-wrap: anywhere; } + + // Only show the error state if the user interacted with the login box + :deep(input:invalid:not(:user-invalid)) { + border-color: var(--color-border-maxcontrast) !important; + } }