From a02967e5dddf2580fc7d59a740b39bfb7dc80250 Mon Sep 17 00:00:00 2001 From: Paul-Van-Uytvinck <47578994+Paul-Van-Uytvinck@users.noreply.github.com> Date: Fri, 8 Dec 2023 17:42:47 +0100 Subject: [PATCH] Improved credential select form accessibility Closes #24412 Signed-off-by: Paul Van Uytvinck Co-authored-by: vanuytvp --- .../theme/base/login/select-authenticator.ftl | 11 ++--------- .../theme/keycloak/login/resources/css/login.css | 6 ++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/themes/src/main/resources/theme/base/login/select-authenticator.ftl b/themes/src/main/resources/theme/base/login/select-authenticator.ftl index 3a73174298..4fbe2d33df 100644 --- a/themes/src/main/resources/theme/base/login/select-authenticator.ftl +++ b/themes/src/main/resources/theme/base/login/select-authenticator.ftl @@ -1,12 +1,6 @@ <#import "template.ftl" as layout> <@layout.registrationLayout displayInfo=false; section> <#if section = "header" || section = "show-username"> - <#if section = "header"> ${msg("loginChooseAuthenticator")} @@ -15,7 +9,7 @@
<#list auth.authenticationSelections as authenticationSelection> -
+ -
diff --git a/themes/src/main/resources/theme/keycloak/login/resources/css/login.css b/themes/src/main/resources/theme/keycloak/login/resources/css/login.css index ed313c89cf..3c07848481 100644 --- a/themes/src/main/resources/theme/keycloak/login/resources/css/login.css +++ b/themes/src/main/resources/theme/keycloak/login/resources/css/login.css @@ -465,6 +465,12 @@ ul#kc-totp-supported-apps { padding-top: 1rem; padding-bottom: 1rem; cursor: pointer; + text-align: left; + align-items: unset; + background-color: unset; + border-right: unset; + border-bottom: unset; + border-left: unset; } .select-auth-box-parent:hover{