Skip to content

Commit

Permalink
Merge pull request #815 from erezcarmel/fix-issue-810
Browse files Browse the repository at this point in the history
fix: Fixed the tooltip arrow overlapping the tooltip content
  • Loading branch information
danielbarion committed Nov 9, 2022
2 parents e0433d4 + 51c7e1a commit edb5ae0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tooltip",
"version": "4.4.3",
"version": "4.4.4",
"description": "react tooltip component",
"private": false,
"main": "dist/index.js",
Expand Down
16 changes: 8 additions & 8 deletions src/decorators/styler.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function generateStyle(
content: "";
background-color: inherit;
position: absolute;
z-index: 2;
z-index: -1;
width: 18px;
height: 10px;
}
Expand All @@ -67,7 +67,7 @@ function generateStyle(
border-top-right-radius: ${arrowRadius}px;
border: 1px solid ${borderColor};
background-color: ${arrowColor};
z-index: 1;
z-index: -2;
bottom: -6px;
left: 50%;
margin-left: -8px;
Expand All @@ -81,7 +81,7 @@ function generateStyle(
content: "";
background-color: inherit;
position: absolute;
z-index: 2;
z-index: -1;
width: 18px;
height: 10px;
}
Expand All @@ -93,7 +93,7 @@ function generateStyle(
border-top-right-radius: ${arrowRadius}px;
border: 1px solid ${borderColor};
background-color: ${arrowColor};
z-index: 1;
z-index: -2;
top: -6px;
left: 50%;
margin-left: -8px;
Expand All @@ -107,7 +107,7 @@ function generateStyle(
content: "";
background-color: inherit;
position: absolute;
z-index: 2;
z-index: -1;
width: 10px;
height: 18px;
}
Expand All @@ -119,7 +119,7 @@ function generateStyle(
border-top-right-radius: ${arrowRadius}px;
border: 1px solid ${borderColor};
background-color: ${arrowColor};
z-index: 1;
z-index: -2;
right: -6px;
top: 50%;
margin-top: -6px;
Expand All @@ -133,7 +133,7 @@ function generateStyle(
content: "";
background-color: inherit;
position: absolute;
z-index: 2;
z-index: -1;
width: 10px;
height: 18px;
}
Expand All @@ -145,7 +145,7 @@ function generateStyle(
border-top-right-radius: ${arrowRadius}px;
border: 1px solid ${borderColor};
background-color: ${arrowColor};
z-index: 1;
z-index: -2;
left: -6px;
top: 50%;
margin-top: -6px;
Expand Down

0 comments on commit edb5ae0

Please sign in to comment.