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

[Bug]: tooltips render under icons #14137

Closed
2 tasks done
alisonjoseph opened this issue Jul 5, 2023 · 3 comments · Fixed by #14275
Closed
2 tasks done

[Bug]: tooltips render under icons #14137

alisonjoseph opened this issue Jul 5, 2023 · 3 comments · Fixed by #14275
Assignees

Comments

@alisonjoseph
Copy link
Member

Package

@carbon/styles

Browser

No response

Package version

?

React version

No response

Description

Reported in slack https://ibm-studios.slack.com/archives/C0M053VPT/p1687360867441669

image

We’re having a weird layering issue where tooltips are appearing under icons that are in a data table.

Two issues in the example:
tooltip text can only displayed in one line.
icon in table header displayed over tooltip for action button

workaround is to add a z-index to .cds--batch-action

Reproduction/example

https://codesandbox.io/p/sandbox/optimistic-river-sd3q2p?file=%2Fsrc%2Fapp%2Fapp.component.html%3A28%2C59

Steps to reproduce

See codesandbox

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

@tay1orjones tay1orjones changed the title [Bug]: [Bug]: tooltips render under icons Jul 6, 2023
@tay1orjones tay1orjones added severity: 3 https://ibm.biz/carbon-severity role: dev 🤖 labels Jul 6, 2023
@tay1orjones
Copy link
Member

We could revise the styling for the batch action bar to set a higher z-index than what it gets currently. or update the styling for the batch action bar so that it creates a new stacking context to ensure it renders above the datatable elements later in the dom

On a larger scale, this contributes to the list of reasons why we need to consider revising how we render and place tooltips, #14139

@bianca-c-melo
Copy link

bianca-c-melo commented Jul 9, 2023

Captura de Tela 2023-07-09 às 15 27 04

I'm facing the same issue where the popover doesn't overlay other elements. I've tried modifying the existing z-index values, but I haven't any success. The only thing that worked was changing the overflow property of the modal body to "visible", but it's not an ideal solution. Is there any workaround to solve this problem for now?

@alisonjoseph
Copy link
Member Author

alisonjoseph commented Jul 18, 2023

This bug was also reported via slack and this example, where toggle is showing up above popover. Fixed by adding a z-index to the toolbar.

https://codesandbox.io/s/stupefied-marco-5xgt2d?file=/index.js
Screenshot 2023-07-18 at 3 42 53 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants