@streamscloud/kit 0.83.0 → 0.83.1

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.
@@ -19,7 +19,7 @@ const position = async () => {
19
19
  if (arrowEl) {
20
20
  middleware.push(arrowMiddleware({ element: arrowEl }));
21
21
  }
22
- const result = await computePosition(triggerEl, bubbleEl, { placement, middleware });
22
+ const result = await computePosition(triggerEl, bubbleEl, { placement, middleware, strategy: 'fixed' });
23
23
  Object.assign(bubbleEl.style, {
24
24
  left: `${result.x}px`,
25
25
  top: `${result.y}px`
@@ -72,8 +72,8 @@ $effect(() => () => {
72
72
  onfocusout={hide}
73
73
  role="presentation">
74
74
  {@render children({ 'aria-describedby': descriptionId })}
75
+ <span id={descriptionId} class="tooltip__description" aria-hidden="true">{text}</span>
75
76
  </span>
76
- <span id={descriptionId} class="tooltip__description" aria-hidden="true">{text}</span>
77
77
 
78
78
  {#if visible}
79
79
  <span bind:this={bubbleEl} class="tooltip__bubble" role="tooltip" aria-hidden="true" data-placement={resolvedPlacement}>
@@ -105,6 +105,7 @@ or plain text. Bubble flips and shifts on viewport collision; an arrow points to
105
105
  -->
106
106
 
107
107
  <style>.tooltip {
108
+ position: relative;
108
109
  display: inline-flex;
109
110
  align-items: center;
110
111
  }
@@ -138,7 +139,7 @@ or plain text. Bubble flips and shifts on viewport collision; an arrow points to
138
139
  --_tt--arrow-bottom: auto;
139
140
  --_tt--arrow-left: auto;
140
141
  --_tt--arrow-right: auto;
141
- position: absolute;
142
+ position: fixed;
142
143
  top: 0;
143
144
  left: 0;
144
145
  z-index: var(--_tt--z-index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.83.0",
3
+ "version": "0.83.1",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",