1
Fork 0

Make search results tab and help button focusable with keyboard

This commit is contained in:
Guillaume Gomez 2020-12-10 11:38:12 +01:00
parent e413d89aa7
commit 2363a20b98
6 changed files with 23 additions and 20 deletions

View file

@ -1633,10 +1633,10 @@ function defocusSearchBar() {
function makeTabHeader(tabNb, text, nbElems) {
if (currentTab === tabNb) {
return "<div class=\"selected\">" + text +
" <div class=\"count\">(" + nbElems + ")</div></div>";
return "<button class=\"selected\">" + text +
" <div class=\"count\">(" + nbElems + ")</div></button>";
}
return "<div>" + text + " <div class=\"count\">(" + nbElems + ")</div></div>";
return "<button>" + text + " <div class=\"count\">(" + nbElems + ")</div></button>";
}
function showResults(results) {