Skip to content

Commit b0aca32

Browse files
committed
feat(Menu): remove focus of menuItem based on path. Add currentUrl story
BREAKING CHANGE: remove checking of current path to focus menu item
1 parent 74efebb commit b0aca32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stories/Menu.stories.svelte

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ let content = 'Menu Button'
77
const args = {
88
class: 'dib relative opacity1', //for some reason the menu isn't behaving in storybook
99
menuOpen: true,
10+
currentUrl: '/?path=/story/atoms-menu--primary',
1011
menuItems: [
1112
{
1213
subtitle: 'Alerts',
@@ -15,16 +16,17 @@ const args = {
1516
icon: 'notifications',
1617
label: 'Alerts',
1718
action: () => alert('Hello!'),
19+
url: '/?path=/story/atoms-menu--primary',
1820
},
1921
{
2022
icon: 'settings',
2123
label: 'User settings',
22-
url: '/household/settings',
24+
url: '/',
2325
},
2426
{
2527
icon: 'logout',
2628
label: 'Sign out',
27-
url: '/logout',
29+
url: '/',
2830
},
2931
],
3032
toggleMenu() {

0 commit comments

Comments
 (0)