From 8aaac57ee62117d9f121ff45ca4973b72479d050 Mon Sep 17 00:00:00 2001
From: Christopher Ng
Date: Thu, 7 Jul 2022 00:08:52 +0000
Subject: Use Button component to show password for improved accessibility
Signed-off-by: Christopher Ng
---
core/css/guest.css | 11 --------
core/src/components/login/LoginForm.vue | 50 ++++++++++++++++++++++++---------
2 files changed, 37 insertions(+), 24 deletions(-)
(limited to 'core')
diff --git a/core/css/guest.css b/core/css/guest.css
index d859e121f2d..6608a18992d 100644
--- a/core/css/guest.css
+++ b/core/css/guest.css
@@ -296,17 +296,6 @@ input[type='password'].password-with-toggle, input[type='text'].password-with-to
width: 219px;
padding-right: 40px;
}
-.toggle-password {
- position: absolute;
- top: 1px;
- right: 5px;
- padding: 14px;
- height: 16px;
-}
-.toggle-password:hover,
-.toggle-password:focus {
- opacity: .6;
-}
input.login {
width: 260px;
height: 50px;
diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue
index 9114c0a728a..3fa02d5fa0b 100644
--- a/core/src/components/login/LoginForm.vue
+++ b/core/src/components/login/LoginForm.vue
@@ -84,9 +84,15 @@
required>
-
-
-
+
@@ -128,15 +134,24 @@
-
--
cgit v1.2.3