Skip to content

Commit f122b33

Browse files
authored
Merge pull request #503 from hydephp/499-make-the-search-menu-dialog-position-fixed
Fix #499: Make the search dialog positioning fixed
2 parents 57bf6c3 + b563c03 commit f122b33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/views/components/docs/search.blade.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</button>
88
@push('scripts')
99

10-
<dialog id="searchMenu" class="prose dark:prose-invert bg-gray-100 dark:bg-gray-800">
10+
<dialog id="searchMenu" class="prose dark:prose-invert bg-gray-100 dark:bg-gray-800 fixed">
1111
@include('hyde::components.docs.search-input')
1212
<footer>
1313
<small>
@@ -59,6 +59,7 @@ function createBackdrop() {
5959
function createCloseButton() {
6060
const closeButton = document.createElement('button');
6161
closeButton.id = 'searchMenuCloseButton';
62+
closeButton.classList.add('fixed');
6263
closeButton.setAttribute('aria-label', 'Close search menu');
6364
closeButton.addEventListener('click', () => {
6465
closeSearchMenu();

0 commit comments

Comments
 (0)