Improved credential select form accessibility
Closes #24412 Signed-off-by: Paul Van Uytvinck <paul.van.uytvinck@cern.ch> Co-authored-by: vanuytvp <paul.vanuytvinck@cern.ch>
This commit is contained in:
parent
99d197b309
commit
a02967e5dd
2 changed files with 8 additions and 9 deletions
|
@ -1,12 +1,6 @@
|
||||||
<#import "template.ftl" as layout>
|
<#import "template.ftl" as layout>
|
||||||
<@layout.registrationLayout displayInfo=false; section>
|
<@layout.registrationLayout displayInfo=false; section>
|
||||||
<#if section = "header" || section = "show-username">
|
<#if section = "header" || section = "show-username">
|
||||||
<script type="text/javascript">
|
|
||||||
function fillAndSubmit(authExecId) {
|
|
||||||
document.getElementById('authexec-hidden-input').value = authExecId;
|
|
||||||
document.getElementById('kc-select-credential-form').submit();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<#if section = "header">
|
<#if section = "header">
|
||||||
${msg("loginChooseAuthenticator")}
|
${msg("loginChooseAuthenticator")}
|
||||||
</#if>
|
</#if>
|
||||||
|
@ -15,7 +9,7 @@
|
||||||
<form id="kc-select-credential-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
|
<form id="kc-select-credential-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
|
||||||
<div class="${properties.kcSelectAuthListClass!}">
|
<div class="${properties.kcSelectAuthListClass!}">
|
||||||
<#list auth.authenticationSelections as authenticationSelection>
|
<#list auth.authenticationSelections as authenticationSelection>
|
||||||
<div class="${properties.kcSelectAuthListItemClass!}" onclick="fillAndSubmit('${authenticationSelection.authExecId}')">
|
<button class="${properties.kcSelectAuthListItemClass!}" type="submit" name="authenticationExecution" value="${authenticationSelection.authExecId}">
|
||||||
|
|
||||||
<div class="${properties.kcSelectAuthListItemIconClass!}">
|
<div class="${properties.kcSelectAuthListItemIconClass!}">
|
||||||
<i class="${properties['${authenticationSelection.iconCssClass}']!authenticationSelection.iconCssClass} ${properties.kcSelectAuthListItemIconPropertyClass!}"></i>
|
<i class="${properties['${authenticationSelection.iconCssClass}']!authenticationSelection.iconCssClass} ${properties.kcSelectAuthListItemIconPropertyClass!}"></i>
|
||||||
|
@ -32,9 +26,8 @@
|
||||||
<div class="${properties.kcSelectAuthListItemArrowClass!}">
|
<div class="${properties.kcSelectAuthListItemArrowClass!}">
|
||||||
<i class="${properties.kcSelectAuthListItemArrowIconClass!}"></i>
|
<i class="${properties.kcSelectAuthListItemArrowIconClass!}"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</button>
|
||||||
</#list>
|
</#list>
|
||||||
<input type="hidden" id="authexec-hidden-input" name="authenticationExecution" />
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -465,6 +465,12 @@ ul#kc-totp-supported-apps {
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
cursor: pointer;
|
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{
|
.select-auth-box-parent:hover{
|
||||||
|
|
Loading…
Reference in a new issue