noph-ui 0.12.16 → 0.12.17

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.
@@ -144,6 +144,7 @@
144
144
  justify-self: var(--np-menu-justify-self, anchor-center);
145
145
  position-area: var(--np-menu-position-area, bottom center);
146
146
  position-try: normal flip-block;
147
+ z-index: 1000;
147
148
  }
148
149
 
149
150
  .np-menu-container:popover-open {
@@ -95,8 +95,12 @@
95
95
  bind:clientWidth
96
96
  autofocus={disabled ? false : autofocus}
97
97
  onclick={(event) => {
98
- event.preventDefault()
99
- menuElement?.showPopover()
98
+ const target = event.target as HTMLElement
99
+ const link = target.closest('a[href]')
100
+ if (!link) {
101
+ event.preventDefault()
102
+ menuElement?.showPopover()
103
+ }
100
104
  }}
101
105
  onkeydown={(event) => {
102
106
  if (event.key === 'Tab') {
@@ -55,11 +55,14 @@
55
55
  --np-color-tertiary-fixed-dim: light-dark(#eab2ff, #eab2ff);
56
56
  --np-color-tertiary-palette-key-color: light-dark(#d29be8, #d29be8);
57
57
 
58
- --np-elevation-1: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
58
+ --np-elevation-1:
59
+ rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
59
60
  rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
60
- --np-elevation-2: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
61
+ --np-elevation-2:
62
+ rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
61
63
  rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
62
- --np-elevation-3: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px,
64
+ --np-elevation-3:
65
+ rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px,
63
66
  rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
64
67
  --np-shape-corner-full: 9999px;
65
68
  --np-shape-corner-extra-small: 0.25rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.12.16",
3
+ "version": "0.12.17",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {