Skip to content

Commit b8148a6

Browse files
committed
address review 3
1 parent 8611061 commit b8148a6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/static/css/site.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,8 @@ summary .group-name {
657657
border-bottom: 1px solid var(--dim-color);
658658
}
659659

660-
.wiki-search-result:hover::before, .wiki-search-result:focus::before {
660+
.wiki-search-result:hover::before,
661+
.wiki-search-result:focus::before {
661662
display: block;
662663
background: var(--light-ghost-color);
663664
}

src/static/js/client/sidebar-search.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ export const info = {
6767
tidiedSidebar: null,
6868
collapsedDetailsForTidiness: null,
6969

70+
currentValue: null,
71+
7072
workerStatus: null,
7173
searchStage: null,
7274

7375
stoppedTypingTimeout: null,
7476
stoppedScrollingTimeout: null,
7577

7678
indexDownloadStatuses: Object.create(null),
77-
78-
currentValue: null,
7979
},
8080

8181
session: {
@@ -344,8 +344,8 @@ export function addPageListeners() {
344344

345345
info.searchInput.addEventListener('keydown', domEvent => {
346346
if (domEvent.key === 'ArrowDown') {
347-
const elem = info.results?.firstChild;
348-
if (elem && !elem.classList.contains('wiki-search-no-results')) {
347+
const elem = info.results.firstChild;
348+
if (elem?.classList?.contains?.('wiki-search-result')) {
349349
domEvent.preventDefault();
350350
elem.focus({focusVisible: true});
351351
}

0 commit comments

Comments
 (0)