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:
parent
49eb245580
commit
1527b7c85c
|
@ -109,9 +109,7 @@ a {
|
|||
}
|
||||
}
|
||||
|
||||
a:focus,
|
||||
button:focus,
|
||||
input[type="checkbox"]:focus {
|
||||
:focus {
|
||||
outline: 3px solid fade(@icinga-blue, 50%);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue