Skip to content

Commit

Permalink
Merge pull request #17875 from apache/fix/tooltip-arrow
Browse files Browse the repository at this point in the history
fix(tooltip): fix tooltip arrow may cover the content when border is wide
  • Loading branch information
Ovilia authored Nov 7, 2022
2 parents 273f3ed + 3b20b82 commit 84a9de8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/tooltip/TooltipHTMLContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function assembleArrow(

const borderStyle = `${borderColor} solid ${borderWidth}px;`;
const styleCss = [
`position:absolute;width:${arrowSize}px;height:${arrowSize}px;`,
`position:absolute;width:${arrowSize}px;height:${arrowSize}px;z-index:-1;`,
`${positionStyle};${transformStyle};`,
`border-bottom:${borderStyle}`,
`border-right:${borderStyle}`,
Expand Down
1 change: 1 addition & 0 deletions test/runTest/actions/__meta__.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/runTest/actions/tooltip-domnode.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions test/tooltip-domnode.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84a9de8

Please sign in to comment.