mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
Merge pull request #2416 from nextcloud/enh/noid/adjust-button-focus
adjust the button color on focus
This commit is contained in:
commit
72d55cdbbf
2 changed files with 7 additions and 2 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue