Skip to content

Commit 4643d7b

Browse files
committed
Fix menu items
1 parent dd8a1ba commit 4643d7b

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@freenit-framework/core",
3-
"version": "0.0.48",
3+
"version": "0.0.49",
44
"private": false,
55
"author": "Goran Mekić <meka@tilda.center>",
66
"license": "BSD-2-Clause",

src/lib/MenuItem.svelte

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
<script lang="ts">
2-
let { icon, onclick, href, children } = $props()
2+
let { icon, toggle, href, children } = $props()
33
</script>
44

5-
<a class="item" {href}>
6-
<svg class="icon dark" {onclick} onkeyup={onclick} onkeydown={onclick} role="button" tabindex={0}>
5+
<a
6+
class="item"
7+
{href}
8+
onclick={toggle}
9+
onkeyup={toggle}
10+
onkeydown={toggle}
11+
role="button"
12+
tabindex={0}
13+
>
14+
<svg class="icon dark">
715
<path d={icon} />
816
</svg>
917
{@render children?.()}

0 commit comments

Comments
 (0)