@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadsmart/loadsmart-ui",
3
- "version": "5.20.1",
3
+ "version": "6.0.0",
4
4
  "description": "Miranda UI, a React UI library",
5
5
  "main": "dist",
6
6
  "files": [
@@ -48,7 +48,7 @@ const Container = styled.div<ContainerProps>`
48
48
  `}
49
49
  `
50
50
 
51
- const Bubble = styled.div`
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: 1;
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
- <Popover.Floating>
181
- <Bubble role="tooltip">
182
- {message}
183
- <Arrow />
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>