Skip to content

Commit

Permalink
style: search-pane to have lower z-index than stop modal
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunsinghofficial committed Sep 2, 2024
1 parent 2f90702 commit 9d9f151
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/navigation/ModalPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import { createEventDispatcher } from 'svelte';
import { pushState } from '$app/navigation';
export let stop = null;
const dispatch = createEventDispatcher();
function closePane() {
Expand All @@ -16,6 +18,7 @@

<div
class="modal-pane scroll-hidden"
style={stop ? 'z-index: 40' : 'z-index: 20'}
in:fly={{ y: 200, duration: 500 }}
out:fly={{ y: 200, duration: 500 }}
>
Expand All @@ -36,7 +39,7 @@

<style lang="postcss">
.modal-pane {
@apply absolute bottom-0 left-0 z-40 max-h-[40rem] w-full overflow-y-scroll bg-transparent px-2 shadow-lg md:max-w-prose;
@apply absolute bottom-0 left-0 max-h-[40rem] w-full overflow-y-scroll bg-transparent px-2 shadow-lg md:max-w-prose;
@apply rounded-lg border-b-[1px] border-[#C6C6C8] bg-[#F3F2F8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15 dark:bg-black;
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<Header on:searchResults={handleSearch} />
{#if stop}
<ModalPane on:close={closePane}>
<ModalPane on:close={closePane} {stop}>
<StopPane
{showAllStops}
{stop}
Expand Down

0 comments on commit 9d9f151

Please sign in to comment.