css: Style outline for any focusable element the same

A recent chrome version changed the focus style again.
Without this some form elements and other focusable
elements get a black outline.
This commit is contained in:
Johannes Meyer 2020-06-03 16:27:40 +02:00
parent 49eb245580
commit 1527b7c85c
3 changed files with 3 additions and 9 deletions

View File

@ -109,9 +109,7 @@ a {
}
}
a:focus,
button:focus,
input[type="checkbox"]:focus {
:focus {
outline: 3px solid fade(@icinga-blue, 50%);
outline-offset: 1px;
}

View File

@ -161,7 +161,8 @@
}
.container,
.error-message {
.error-message,
.modal-window {
// Don't outline containers and error messages when focused because they receive focus for accessibility only
// programmatically
outline: none;

View File

@ -103,11 +103,6 @@
}
}
input:focus,
input[type="submit"]:focus {
outline: 3px solid fade(@icinga-blue, 50%);
}
.form-controls {
margin-bottom: 2em;
margin-top: 2em;