From 74f8c13598b00db30808b6d11fb691b38e313d93 Mon Sep 17 00:00:00 2001 From: Stephen Tse Date: Mon, 4 Nov 2024 17:22:36 -0800 Subject: [PATCH] fix: reset z-index instead of inherited unset (#1528) Co-authored-by: Aaron Pham --- quartz/components/scripts/graph.inline.ts | 2 +- quartz/components/scripts/search.inline.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quartz/components/scripts/graph.inline.ts b/quartz/components/scripts/graph.inline.ts index 5e8d48c..dbddae9 100644 --- a/quartz/components/scripts/graph.inline.ts +++ b/quartz/components/scripts/graph.inline.ts @@ -580,7 +580,7 @@ document.addEventListener("nav", async (e: CustomEventMap["nav"]) => { function hideGlobalGraph() { container?.classList.remove("active") if (sidebar) { - sidebar.style.zIndex = "unset" + sidebar.style.zIndex = "" } } diff --git a/quartz/components/scripts/search.inline.ts b/quartz/components/scripts/search.inline.ts index 73e64b3..f422d49 100644 --- a/quartz/components/scripts/search.inline.ts +++ b/quartz/components/scripts/search.inline.ts @@ -178,7 +178,7 @@ document.addEventListener("nav", async (e: CustomEventMap["nav"]) => { searchBar.value = "" // clear the input when we dismiss the search } if (sidebar) { - sidebar.style.zIndex = "unset" + sidebar.style.zIndex = "" } if (results) { removeAllChildren(results)