Skip to content

Commit

Permalink
fix(design): fix tooltip behavior (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Apr 10, 2024
1 parent 8c2282b commit bd85759
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/design/src/components/tooltip/Tooltip.tsx
Expand Up @@ -52,7 +52,6 @@ export const Tooltip = forwardRef((props: ITooltipProps, ref: Ref<TooltipRef>) =
builtinPlacements={placements}
placement={placement}
mouseEnterDelay={0.2}
mouseLeaveDelay={0}
showArrow
destroyTooltipOnHide
onVisibleChange={onVisibleChange}
Expand Down
1 change: 1 addition & 0 deletions packages/design/src/components/tooltip/index.module.less
Expand Up @@ -5,6 +5,7 @@
.tooltip {
position: absolute;
z-index: 1080;
pointer-events: none;

display: block;

Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/views/components/sidebar/index.module.less
Expand Up @@ -46,6 +46,7 @@
font-weight: 500;

background: rgb(var(--bg-color-secondary));
z-index: 10;

&-close {
cursor: pointer;
Expand Down

0 comments on commit bd85759

Please sign in to comment.