noph-ui 0.6.4 → 0.6.6

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.
@@ -32,7 +32,11 @@
32
32
  {@render content()}
33
33
  </button>
34
34
  {:else if isLink(attributes)}
35
- <a {...attributes} class="np-navigation-action {attributes.class}">
35
+ <a
36
+ {...attributes}
37
+ class:np-navigation-action-selected={selected}
38
+ class="np-navigation-action {attributes.class}"
39
+ >
36
40
  {@render content()}
37
41
  </a>
38
42
  {/if}
@@ -4,20 +4,25 @@
4
4
  let { children, ...attributes }: NavigationRailProps = $props()
5
5
  </script>
6
6
 
7
- <nav {...attributes} class="navigation-rail {attributes.class}">
8
- {#if children}
9
- {@render children()}
10
- {/if}
11
- </nav>
7
+ <div {...attributes} class="navigation-rail-container {attributes.class}">
8
+ <nav class="navigation-rail">
9
+ {#if children}
10
+ {@render children()}
11
+ {/if}
12
+ </nav>
13
+ </div>
12
14
 
13
15
  <style>
14
- .navigation-rail {
16
+ .navigation-rail-container {
17
+ overflow-y: auto;
15
18
  z-index: 8;
19
+ background-color: var(--np-color-surface);
20
+ }
21
+ .navigation-rail {
16
22
  display: flex;
17
23
  flex-direction: column;
18
24
  justify-content: space-between;
19
25
  width: 80px;
20
26
  gap: 0.75rem;
21
- background-color: var(--np-color-surface);
22
27
  }
23
28
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {