File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed
packages/skeleton-svelte/src/components/Tooltip Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @skeletonlabs/skeleton-svelte " : patch
3
+ ---
4
+
5
+ Bugfix: z-index of tooltip was not working when an arrow element was present.
6
+
Original file line number Diff line number Diff line change 55
55
</button >
56
56
{/if }
57
57
<!-- Tooltip Content -->
58
- {#if api .open }
59
- <div {...api .getPositionerProps ()} transition:fade ={{ duration : 100 }} class =" {positionerBase } {positionerClasses }" >
60
- <!-- Arrow -->
61
- {#if arrow }
62
- <div {...api .getArrowProps ()}>
63
- <div {...api .getArrowTipProps ()} class =" {arrowBase } {arrowBackground } {arrowClasses }" ></div >
58
+ <div {...api .getPositionerProps ()} class =" {positionerBase } {positionerClasses }" >
59
+ <!-- Popover -->
60
+ {#if api .open }
61
+ <div {...api .getContentProps ()} transition:fade ={{ duration : 100 }} style ="z-index: {zIndex };" >
62
+ <!-- Arrow -->
63
+ {#if arrow }
64
+ <div {...api .getArrowProps ()}>
65
+ <div {...api .getArrowTipProps ()} class =" {arrowBase } {arrowBackground } {arrowClasses }" ></div >
66
+ </div >
67
+ {/if }
68
+ <!-- Snippet Content -->
69
+ <div class =" {contentBase } {contentBackground } {contentClasses }" >
70
+ {@render content ?.()}
64
71
</div >
65
- {/if }
66
- <!-- Snippet Content -->
67
- <div {...api .getContentProps ()} class =" {contentBase } {contentBackground } {contentClasses }" style ="z-index: {zIndex };" >
68
- {@render content ?.()}
69
72
</div >
70
- </ div >
71
- { /if }
73
+ { /if }
74
+ </ div >
72
75
</span >
73
76
74
77
<style >
You can’t perform that action at this time.
0 commit comments