@loadsmart/loadsmart-ui 5.20.1 → 6.0.0
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.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Tooltip/Tooltip.tsx +6 -8
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ const Container = styled.div<ContainerProps>`
|
|
|
48
48
|
`}
|
|
49
49
|
`
|
|
50
50
|
|
|
51
|
-
const Bubble = styled.
|
|
51
|
+
const Bubble = styled(Popover.Floating)`
|
|
52
52
|
${typography('body')}
|
|
53
53
|
|
|
54
54
|
white-space: initial;
|
|
@@ -85,7 +85,7 @@ const StyledArrow = styled.span<ArrowProps>`
|
|
|
85
85
|
background: transparent;
|
|
86
86
|
border-style: solid;
|
|
87
87
|
|
|
88
|
-
z-index:
|
|
88
|
+
z-index: ${token('z-index-tooltip')};
|
|
89
89
|
|
|
90
90
|
${({ top }) => top && `top: ${top}px;`}
|
|
91
91
|
${({ left }) => left && `left: ${left}px;`}
|
|
@@ -177,12 +177,10 @@ function Tooltip({
|
|
|
177
177
|
>
|
|
178
178
|
<Popover position={position} align={align}>
|
|
179
179
|
{visible && (
|
|
180
|
-
<
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
</Bubble>
|
|
185
|
-
</Popover.Floating>
|
|
180
|
+
<Bubble role="tooltip">
|
|
181
|
+
{message}
|
|
182
|
+
<Arrow />
|
|
183
|
+
</Bubble>
|
|
186
184
|
)}
|
|
187
185
|
|
|
188
186
|
<Popover.Reference>{children}</Popover.Reference>
|