Skip to content

Commit

Permalink
fix(tooltip): pointer-events disabled on button toggles
Browse files Browse the repository at this point in the history
  • Loading branch information
denkristoffer committed Jan 26, 2021
1 parent 6f36fa0 commit be24a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
z-index: var(--z-index-negative);
}

.TooltipContainer > button[disabled] {
pointer-events: none;
}

.Tooltip__arrow {
position: absolute;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const Tooltip = ({
<>
<ContainerElement
ref={elementRef}
className={targetWrapperClassName}
className={cn(styles.TooltipContainer, targetWrapperClassName)}
onMouseEnter={(evt: MouseEvent) => {
setIsHoveringTarget(true);
if (onMouseOver) onMouseOver(evt);
Expand Down

0 comments on commit be24a83

Please sign in to comment.