Skip to content

Commit

Permalink
remove overlay from menus for now (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Aug 29, 2023
1 parent 101af0b commit b595e60
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-camels-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

Fix: remove background overlay from menu components
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang="ts">
import Overlay from "$lib/internal/overlay.svelte";
import { createDispatcher } from "$lib/internal/events.js";
import { melt } from "@melt-ui/svelte";
Expand Down Expand Up @@ -31,10 +29,6 @@
const dispatch = createDispatcher();
</script>

{#if $open}
<Overlay />
{/if}

{#if asChild && $open}
{@const builder = $menu}
<slot {builder} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { createDispatcher } from "$lib/internal/events.js";
import { melt } from "@melt-ui/svelte";
import Overlay from "$lib/internal/overlay.svelte";
import type { Transition } from "$lib/internal/types.js";
import { ctx } from "../ctx.js";
import type { ContentEvents, ContentProps } from "../types.js";
Expand Down Expand Up @@ -34,9 +33,6 @@
</script>

<!-- svelte-ignore a11y-no-static-element-interactions applied by melt's action/store -->
{#if $open}
<Overlay />
{/if}
{#if asChild && $open}
{@const builder = $menu}
<slot {builder} />
Expand Down
4 changes: 0 additions & 4 deletions src/lib/bits/select/components/SelectContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { createDispatcher } from "$lib/internal/events.js";
import { melt } from "@melt-ui/svelte";
import Overlay from "$lib/internal/overlay.svelte";
import type { Transition } from "$lib/internal/types.js";
import { ctx } from "../ctx.js";
import type { ContentEvents, ContentProps } from "../types.js";
Expand Down Expand Up @@ -30,9 +29,6 @@

<!-- svelte-ignore a11y-no-static-element-interactions / applied by melt's builder-->

{#if $open}
<Overlay />
{/if}
{#if asChild && $open}
{@const builder = $menu}
<slot {builder} />
Expand Down

0 comments on commit b595e60

Please sign in to comment.