Adding better integration with keyboard navigation for the search.

This commit is contained in:
Sergiotarxz 2023-09-04 17:37:57 +02:00
parent 8bd4379ef2
commit 4eeed20efc
4 changed files with 4 additions and 3 deletions

View File

@ -47,6 +47,7 @@ function addListenersSearch() {
const searchOverlay = document.querySelector('div.search-overlay');
const searchInput = searchOverlay.querySelector('div.search input');
searchInput.value = fakeSearchInput.value;
onSearchChange(e)
}
onFakeSearchClick(e)
});

File diff suppressed because one or more lines are too long

View File

@ -35,7 +35,7 @@
<div class="search-overlay">
<div class="bounding-search-bar">
%= include 'page/_search_bar'
<a class="exit-search">
<a href="#" class="exit-search">
<img alt="Exit search" src="/img/exit.svg"/>
</a>
</div>

View File

@ -1,4 +1,4 @@
<div tabindex="0" class="search">
<div class="search">
<div class="search-icon">
<img alt="" src="/img/search.svg"/>
</div>