Skip to content

Commit ad7edf1

Browse files
committed
Prevent page scroll when search dialog is open
1 parent 6eed63a commit ad7edf1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/styles/custom.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,11 @@ starlight-tabs [role="tab"][aria-selected="true"] {
477477
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
478478
}
479479

480-
/* Search dialog open state - blur page content */
480+
/* Search dialog open state - blur page content and prevent scroll */
481+
body.search-dialog-open {
482+
overflow: hidden;
483+
}
484+
481485
body.search-dialog-open .page {
482486
filter: blur(8px);
483487
transition: filter 0.15s ease;

0 commit comments

Comments
 (0)