Skip to content
Snippets Groups Projects
Commit 68c478fd authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Make the login button accessible

Makes it focusable and react to keyboard events
parent 4b83f938
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,7 @@ class VPUAuth extends VPULitElement {
onLoginClicked(e) {
this._kcwrapper.login();
e.preventDefault();
}
onLogoutClicked(e) {
......@@ -269,6 +270,12 @@ class VPUAuth extends VPULitElement {
display: inline-block;
}
a {
color: currentColor;
cursor: pointer;
text-decoration: none;
}
.dropdown.is-active .dropdown-menu, .dropdown.is-hoverable:hover .dropdown-menu {
display: block;
}
......@@ -446,10 +453,12 @@ class VPUAuth extends VPULitElement {
`;
return html`
<div class="loginbox" @click="${this.onLoginClicked}">
<div class="icon">${unsafeHTML(loginSVG)}</div>
<div class="label">${i18n.t('login')}</div>
</div>
<a href="#" @click="${this.onLoginClicked}">
<div class="loginbox">
<div class="icon">${unsafeHTML(loginSVG)}</div>
<div class="label">${i18n.t('login')}</div>
</div>
</a>
`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment