Make upload button focusable (accessibility/tab navigation)

This commit is contained in:
ehuggett 2017-09-13 00:49:50 +01:00
parent cdd1bb3c29
commit 208c28ee01
2 changed files with 20 additions and 2 deletions

View file

@ -279,7 +279,17 @@ a {
}
input[type='file'] {
display: none;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
input[type='file'].has-focus + #browse,
input[type='file']:focus + #browse {
background-color: #0287e8;
outline: 1px dotted #000;
outline: -webkit-focus-ring-color auto 5px;
}
#file-size-msg {