Merge pull request #2416 from nextcloud/enh/noid/adjust-button-focus

adjust the button color on focus
This commit is contained in:
Simon L 2023-05-01 14:37:24 +02:00 committed by GitHub
commit 72d55cdbbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -31,7 +31,7 @@
} }
} }
function disableSpinnerSpinner() { function enableSpinner() {
document.getElementById('overlay').classList.add('loading'); document.getElementById('overlay').classList.add('loading');
} }
@ -51,7 +51,7 @@
xhr.addEventListener('error', () => disableSpinner()); xhr.addEventListener('error', () => disableSpinner());
xhr.open(form.method, form.getAttribute("action")); xhr.open(form.method, form.getAttribute("action"));
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
disableSpinnerSpinner(); enableSpinner();
xhr.send(new URLSearchParams(new FormData(form))); xhr.send(new URLSearchParams(new FormData(form)));
event.preventDefault(); event.preventDefault();
} }

View file

@ -23,6 +23,11 @@ a {
outline: none; outline: none;
} }
.button:focus {
color:black;
border: 2px solid black;
}
#logout { #logout {
margin-top: 7px; margin-top: 7px;
} }