Ensure fundamental accessibility for basic login flow (#11314)

Fixes #11313
This commit is contained in:
Martin Bartoš 2022-04-22 11:21:05 +02:00 committed by GitHub
parent 0c7a8c8684
commit 05b2c590a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@
<#nested "show-username"> <#nested "show-username">
<div id="kc-username" class="${properties.kcFormGroupClass!}"> <div id="kc-username" class="${properties.kcFormGroupClass!}">
<label id="kc-attempted-username">${auth.attemptedUsername}</label> <label id="kc-attempted-username">${auth.attemptedUsername}</label>
<a id="reset-login" href="${url.loginRestartFlowUrl}"> <a id="reset-login" href="${url.loginRestartFlowUrl}" aria-label="${msg("restartLoginTooltip")}">
<div class="kc-login-tooltip"> <div class="kc-login-tooltip">
<i class="${properties.kcResetFlowIcon!}"></i> <i class="${properties.kcResetFlowIcon!}"></i>
<span class="kc-tooltip-text">${msg("restartLoginTooltip")}</span> <span class="kc-tooltip-text">${msg("restartLoginTooltip")}</span>
@ -96,7 +96,7 @@
<#nested "show-username"> <#nested "show-username">
<div id="kc-username" class="${properties.kcFormGroupClass!}"> <div id="kc-username" class="${properties.kcFormGroupClass!}">
<label id="kc-attempted-username">${auth.attemptedUsername}</label> <label id="kc-attempted-username">${auth.attemptedUsername}</label>
<a id="reset-login" href="${url.loginRestartFlowUrl}"> <a id="reset-login" href="${url.loginRestartFlowUrl}" aria-label="${msg("restartLoginTooltip")}">
<div class="kc-login-tooltip"> <div class="kc-login-tooltip">
<i class="${properties.kcResetFlowIcon!}"></i> <i class="${properties.kcResetFlowIcon!}"></i>
<span class="kc-tooltip-text">${msg("restartLoginTooltip")}</span> <span class="kc-tooltip-text">${msg("restartLoginTooltip")}</span>