@softwareone/spi-sv5-library 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,11 @@
13
13
 
14
14
  let showProfileItems = $state(false);
15
15
 
16
+ const onClickProfileItem = (url: string) => {
17
+ handleProfile();
18
+ goto(url);
19
+ };
20
+
16
21
  const handleProfile = () => {
17
22
  showProfileItems = !showProfileItems;
18
23
  };
@@ -63,9 +68,15 @@
63
68
  <menu class="account-dropdown" transition:fade={{ delay: 50, duration: 250 }}>
64
69
  {#each profileMenuItems as item}
65
70
  <li>
66
- <a href={item.url} class="account-menu-item" onclick={() => handleProfile()}>
71
+ <button
72
+ class="account-menu-item"
73
+ type="button"
74
+ onclick={() => {
75
+ onClickProfileItem(item.url);
76
+ }}
77
+ >
67
78
  {item.text}
68
- </a>
79
+ </button>
69
80
  </li>
70
81
  {/each}
71
82
  </menu>
@@ -150,7 +161,6 @@
150
161
  }
151
162
 
152
163
  .account-menu-item {
153
- display: inline-block;
154
164
  width: 100%;
155
165
  font-weight: 400;
156
166
  font-size: 14px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softwareone/spi-sv5-library",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Svelte components",
5
5
  "keywords": [
6
6
  "svelte",