Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
meeting</a>
<a class="hidden lg:inline-flex items-center justify-center px-6 py-2 mr-4 border-2 border-redis-red-500 text-white font-bold rounded-md hover:bg-redis-red-500 transition-colors"
href="https://redis.io/try-free/">Try Redis</a>
<button id="search-button-mobile" type="button" class="lg:hidden p-1 mt-1 transition-colors hover:text-redis-red-500">
<span class="sr-only">Open search</span>
{{ partial "icons/search.html" }}
</button>
<button data-menu-toggle aria-expanded="false" type="button"
class="menu-toggle lg:hidden p-1 mt-1 transition-colors hover:text-redis-red-500">
<span class="sr-only">Open main menu</span>
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/search-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
const searchModal = (() => {
const searchSite = encodeURIComponent(window.location.pathname)
const searchButton = document.querySelector('#search-button')
const searchButtonMobile = document.querySelector('#search-button-mobile')
const searchContainer = document.querySelector('#search-container')
const searchInput = searchContainer.querySelector('#search-input')
const searchSelect = searchContainer.querySelector('#search-select')
Expand Down Expand Up @@ -391,7 +392,7 @@

// Click handler function
function clickHandler(event) {
if (event.target.closest('#search-button')) {
if (event.target.closest('#search-button') || event.target.closest('#search-button-mobile')) {
startSearch()
} else if (event.target.closest('#search-cancel') || event.target.matches('#search-container')) {
stopSearch()
Expand Down