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 placed in the ContainedList header are hidden by other list headers. #18456

Open
1 of 2 tasks
danielkim10 opened this issue Jan 28, 2025 · 0 comments
Open
1 of 2 tasks

Comments

@danielkim10
Copy link

danielkim10 commented Jan 28, 2025

Package

@carbon/react

Browser

Chrome

Package version

v1.70.0

React version

v18.2.0

Description

I have multiple ContainedList components, with each list header containing a label and an icon with tooltip. When I hover over an icon to view a tooltip, if the tooltip label is long enough, it will be covered by the ContainedList header components underneath it.

Image

Reproduction/example

https://stackblitz.com/edit/github-pk4qyfwl?file=src%2FApp.jsx

Steps to reproduce

In the Stackblitz, hover over each icon and observe how the tooltip behaves.

Suggested Severity

Severity 4 = Unrelated to a user task, has a workaround or does not need a workaround.

Current Workaround

I applied the following CSS properties to the ContainedList header:

.cds--contained-list__header {
  position: relative;
  z-index: initial;
}

This ended up working for my intended use case, resulting in the tooltips no longer being covered. However, I have not fully investigated the effects of these changes.

Image

Application/PAL

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant