Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip keeps showing after FullPageModal opens. #69

Closed
tpstar opened this issue Apr 3, 2020 · 0 comments
Closed

Tooltip keeps showing after FullPageModal opens. #69

tpstar opened this issue Apr 3, 2020 · 0 comments

Comments

@tpstar
Copy link
Contributor

tpstar commented Apr 3, 2020

Prerequisites

  • Version: 1.6.9
  • Operating system: Mac

Step to reproduce (actual behavior)

  • hoover over a Tooltip target to show a Tooltip (or a Popover of that Tooltip)
  • open a FullPageModal by clicking the Tooltip target
  • After the FullPageModal is loaded, the Tooltip still shows, rendered above the FullPageModal

Expected behavior

  • If the Tooltip was for a target in the page below the FullPageModal, the Tooltip should be gone after the FullPageModal is loaded.

  • It would be nice to let users to set z-index for a Tooltip.

For example,

<ToolTip name="Edit" style={{ zIndex: 100 }}>

Currently, a Popover generated by a Tooltip has a hardcoded z-index of 9999.

    <Popover
      style={{ zIndex: "9999" }}
      targetRef={targetRef}
      ref={popoverRef}
      position={position}
    >
      <StyledTooltip
        {...props}
        ref={tooltipRef}
        role="tooltip"
        id={id}
        aria-hidden={!isOpen}
      >
        {children}
      </StyledTooltip>
    </Popover>

Resources

Screen Shot 2020-04-03 at 10 06 51 AM

Screen Shot 2020-04-03 at 9 32 20 AM

@tpstar tpstar closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant