From 875113f3054eddc207767f70fb355af7c8f3baae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Cort=C3=A9s=20Cano?= <38475681+TrapoSAMA@users.noreply.github.com> Date: Mon, 10 Aug 2026 04:09:08 -0400 Subject: [PATCH] Improve form focus and TOTP input semantics (#1105) - use a softer, consistent primary-blue focus treatment for standard data-entry controls - identify TOTP inputs as one-time codes and request numeric keyboards on supported devices - keep TOTP digits visible while they are entered - fix the TOTP setup input ID so its label points to the actual control thanks @TrapoSAMA --- public/css/bootstrap.css | 7 +++++++ templates/login-mfa.tpl | 5 +++-- templates/password-change.tpl | 3 ++- templates/totp.tpl | 5 +++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/public/css/bootstrap.css b/public/css/bootstrap.css index 584a6ae0..11720ab3 100644 --- a/public/css/bootstrap.css +++ b/public/css/bootstrap.css @@ -160,3 +160,10 @@ div#login{ max-width: 35em; } .virtual-list-scroll > #admin_table { min-width: 720px; margin-bottom: 0; } .virtual-search form { margin-bottom: .25rem; } .virtual-search .form-control { margin-left: auto; max-width: 18rem; } + +/* Use a consistent, soft focus treatment for data-entry controls. */ +.form-control:focus, +.form-select:focus { + border-color: #0d6efd; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 .5rem rgba(13, 110, 253, .6); +} diff --git a/templates/login-mfa.tpl b/templates/login-mfa.tpl index 616cf69a..aed38494 100644 --- a/templates/login-mfa.tpl +++ b/templates/login-mfa.tpl @@ -7,8 +7,9 @@
-
+
{$pTOPT_code_text}
diff --git a/templates/password-change.tpl b/templates/password-change.tpl index 79e9d35c..ceeac3bc 100644 --- a/templates/password-change.tpl +++ b/templates/password-change.tpl @@ -33,7 +33,8 @@ - + {/if} diff --git a/templates/totp.tpl b/templates/totp.tpl index e6383db4..a9171744 100644 --- a/templates/totp.tpl +++ b/templates/totp.tpl @@ -25,8 +25,9 @@
-
+
{$pTOTP_code_text} {$PALANG.pTOTP_code_text}