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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃挕 Add tooltip to cell rows #403

Open
McPatto opened this issue Dec 15, 2023 · 0 comments
Open

馃挕 Add tooltip to cell rows #403

McPatto opened this issue Dec 15, 2023 · 0 comments

Comments

@McPatto
Copy link

McPatto commented Dec 15, 2023

馃挕 Add tooltip to row cells

  • what edition are you using - community
  • version for @inovua/reactdatagrid-community - "^5.10.2"

Relevant code or config

export const BaseCellRender = (value: string) => (
  <Tooltip
    buttonSize="lg"
    placement="top"
    title={value}
    buttonClass="z-50"
  >
    <span>{value}</span>
  </Tooltip>
);

What you did:
I am trying to display a Tooltip when hovering a custom cell. This Tooltip is made with a Popover from @headlessui/react

What happened:
Tooltip is not displayed.

Problem description:
I realized that this is because my tooltip has a position: absolute, and somehow the rows below where my tooltip displays are on top of it, hiding my tooltip. Even I use a z-index: 1000000, this component don't show on top
Besides

Suggested solution:
I guess this has to do because you are rendering a custom cell inside a div and that div inside another div. It would really help that my content would be in the same index as other cells.

Demo:

Grabacion.de.pantalla.2023-12-15.a.la.s.19.13.35.mov
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