@likable-hair/svelte 3.1.35 → 3.1.36

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.
@@ -95,6 +95,8 @@ function handleOverlayClick() {
95
95
  on:keypress={handleOverlayClick}
96
96
  on:touchmove|preventDefault={() => {}}
97
97
  on:wheel|preventDefault={() => {}}
98
+ role="presentation"
99
+ tabindex="-1"
98
100
  />
99
101
  <div
100
102
  style:position="absolute"
@@ -125,6 +127,8 @@ function handleOverlayClick() {
125
127
  style:z-index={zIndex + 1}
126
128
  on:click|stopPropagation
127
129
  on:keypress|stopPropagation
130
+ role="presentation"
131
+ tabindex="-1"
128
132
 
129
133
  class:fly-down-in={transition == 'fly-down' && localOpen}
130
134
  class:fly-down-out={transition == 'fly-down' && !localOpen && hasBeenOpened}
@@ -149,6 +153,8 @@ function handleOverlayClick() {
149
153
  style:z-index={zIndex + 1}
150
154
  on:click|stopPropagation
151
155
  on:keypress|stopPropagation
156
+ role="presentation"
157
+ tabindex="-1"
152
158
 
153
159
  class:fly-down-in={transition == 'fly-down' && localOpen}
154
160
  class:fly-down-out={transition == 'fly-down' && !localOpen && hasBeenOpened}
@@ -165,7 +171,8 @@ function handleOverlayClick() {
165
171
  class:fade-in={transition == 'fade' && localOpen}
166
172
  class:fade-out={transition == 'fade' && !localOpen && hasBeenOpened}
167
173
 
168
- class:hidden={!localOpen && !hasBeenOpened}
174
+ class:hidden={!localOpen}
175
+ class:hidden-behind={!localOpen}
169
176
  >
170
177
  <slot />
171
178
  </div>
@@ -173,6 +180,8 @@ function handleOverlayClick() {
173
180
  style:z-index={zIndex + 1}
174
181
  on:click|stopPropagation
175
182
  on:keypress|stopPropagation
183
+ role="presentation"
184
+ tabindex="-1"
176
185
 
177
186
  class:fly-down-in={transition == 'fly-down' && localOpen}
178
187
  class:fly-down-out={transition == 'fly-down' && !localOpen && hasBeenOpened}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair and others",
4
- "version": "3.1.35",
4
+ "version": "3.1.36",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",